diff --git a/scripts/mount_general.sh b/scripts/mount_general.sh index 8519483..1a16264 100644 --- a/scripts/mount_general.sh +++ b/scripts/mount_general.sh @@ -2,13 +2,12 @@ set -euo pipefail sshMount () { - clientUser=$(whoami); serverUser=$1; serverHost=$2; shift 2; args=($@) for ((i=0; i < ${#args[@]}; i=i + 2)); do - sshfs ${serverUser}@${serverHost}:/citadel/${args[$i]}/ /home/${clientUser}/${args[$i + 1]}/ -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=8 + sshfs ${serverUser}@${serverHost}:/citadel/${args[$i]}/ $HOME/${args[$i + 1]}/ -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=8 done }