fixed if error

This commit is contained in:
2015-03-24 16:34:14 +03:00
parent 80aae45cf7
commit 9d91a48adb

View File

@@ -27,7 +27,7 @@ function mount {
SSH=$(echo $SSH | awk -F\| '{ print $1 }') SSH=$(echo $SSH | awk -F\| '{ print $1 }')
if [ "$SSH" == "<manual input>" ]; then if [ "$SSH" == "<manual input>" ]; then
MAN=1 MAN="1"
SSHUSER=$(zenity --entry --text "SSH user" --title "Enter SSH user") SSHUSER=$(zenity --entry --text "SSH user" --title "Enter SSH user")
SSHPASS=$(zenity --entry --hide-text --text "SSH password" --title "Enter SSH password") SSHPASS=$(zenity --entry --hide-text --text "SSH password" --title "Enter SSH password")
SSHHOST=$(zenity --entry --text "SSH host" --title "Enter SSH host") SSHHOST=$(zenity --entry --text "SSH host" --title "Enter SSH host")
@@ -49,7 +49,7 @@ function mount {
fi fi
# Command to mount actually # Command to mount actually
if [ $MAN = 0 ]; then if [ "$MAN" = "0" ]; then
sshfs "$SSH": "$LOCALMOUNTDIR"/"$SSH"/ -o follow_symlinks & sshfs "$SSH": "$LOCALMOUNTDIR"/"$SSH"/ -o follow_symlinks &
else else
echo "$SSHPASS" | sshfs -o password_stdin -p "$SSHPORT" "$SSHUSER"@"$SSHHOST":"$SSHPATH" "$LOCALMOUNTDIR"/"$SSH"/ -o follow_symlinks & echo "$SSHPASS" | sshfs -o password_stdin -p "$SSHPORT" "$SSHUSER"@"$SSHHOST":"$SSHPATH" "$LOCALMOUNTDIR"/"$SSH"/ -o follow_symlinks &