From 18bbe7abd206bc89b92666ede77da18a65dff445 Mon Sep 17 00:00:00 2001 From: mxmehl Date: Wed, 25 Mar 2015 08:45:31 +0300 Subject: [PATCH] fixed a bad if-bug: MAN=0 was not set --- mnt-sftp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mnt-sftp.sh b/mnt-sftp.sh index 7a63331..96460df 100755 --- a/mnt-sftp.sh +++ b/mnt-sftp.sh @@ -49,7 +49,7 @@ function mount { fi # Command to mount actually - if [ "$MAN" = "0" ]; then + if [ "$MAN" != "1" ]; then sshfs "$SSH": "$LOCALMOUNTDIR"/"$SSH"/ -o follow_symlinks & else echo "$SSHPASS" | sshfs -o password_stdin -p "$SSHPORT" "$SSHUSER"@"$SSHHOST":"$SSHPATH" "$LOCALMOUNTDIR"/"$SSH"/ -o follow_symlinks &