sync/scripts/mount_general.sh
2023-02-26 20:42:38 +01:00

12 lines
273 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
sshMount () {
args=($@)
args=(${args[@]:2})
for ((i=0; i < ${#args[@]}; i=i + 2)); do
sshfs $1@$2:/citadel/${args[$i]}/ /home/fabian/${args[$i + 1]}/ -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=8
done
}