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 &