diff options
-rwxr-xr-x | .local/bin/scripts/sshfs-mount | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/scripts/sshfs-mount b/.local/bin/scripts/sshfs-mount index de95aa0..e99e773 100755 --- a/.local/bin/scripts/sshfs-mount +++ b/.local/bin/scripts/sshfs-mount @@ -1,7 +1,7 @@ #!/bin/sh input="$1" -host="${input#*@}" +server="${input#*@}" folder="${input%@*}" mount_path="$HOME/Shares/SSHFS/$folder" @@ -14,4 +14,5 @@ eval "$(keychain --dir "$HOME"/.cache/keychain --eval --agents ssh -Q --quiet "$ # mount the directory mkdir -p "$mount_path"; fusermount -u "$mount_path"; -sshfs -f -o follow_symlinks,idmap=user,identityfile="$HOME"/.ssh/mobile,identityfile="$HOME"/.ssh/ansible root@"$host":/ "$mount_path"; +# TODO: Add setting remote server path with argument +sshfs -f -o follow_symlinks,idmap=user,identityfile="$HOME"/.ssh/mobile,identityfile="$HOME"/.ssh/ansible root@"$server":/ "$mount_path"; |