From f730165081a45357a923b6d7456933ac7b0e8320 Mon Sep 17 00:00:00 2001 From: tdro Date: Wed, 28 Oct 2020 00:51:37 -0400 Subject: .local/bin/scripts/sshfs-mount: Add TODO Remote server path argument --- .local/bin/scripts/sshfs-mount | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.local') 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"; -- cgit v1.2.3