sync/scripts/mount_general.sh

12 lines
273 B
Bash
Raw Normal View History

2022-04-28 23:36:42 +02:00
#!/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
}