From 6d176ee7187b689b8d1fd82553d6a060772497d4 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sat, 14 May 2022 12:13:59 +0200 Subject: [PATCH] added check for .luks-device --- backup.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.fish b/backup.fish index 81b63f0..7d9a25e 100755 --- a/backup.fish +++ b/backup.fish @@ -18,7 +18,7 @@ set_color -o green echo "Mounting luks container..." set_color normal ssh $SSH_OPT -t -i $KEY $USER@$REMOTE " -if [ -d $REMOTE_PATH ] +if [ -d $REMOTE_PATH -a -f .luks-device ] set_color -o green; echo \"backup already mounted!\" set_color normal exit