fixed if error
This commit is contained in:
@@ -27,7 +27,7 @@ function mount {
|
||||
SSH=$(echo $SSH | awk -F\| '{ print $1 }')
|
||||
|
||||
if [ "$SSH" == "<manual input>" ]; then
|
||||
MAN=1
|
||||
MAN="1"
|
||||
SSHUSER=$(zenity --entry --text "SSH user" --title "Enter SSH user")
|
||||
SSHPASS=$(zenity --entry --hide-text --text "SSH password" --title "Enter SSH password")
|
||||
SSHHOST=$(zenity --entry --text "SSH host" --title "Enter SSH host")
|
||||
@@ -49,7 +49,7 @@ function mount {
|
||||
fi
|
||||
|
||||
# Command to mount actually
|
||||
if [ $MAN = 0 ]; then
|
||||
if [ "$MAN" = "0" ]; 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 &
|
||||
|
||||
Reference in New Issue
Block a user