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