2022-04-28 23:36:42 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
sshMount () {
|
2023-09-17 14:43:44 +02:00
|
|
|
serverUser=$1;
|
|
|
|
serverHost=$2;
|
|
|
|
shift 2;
|
2022-04-28 23:36:42 +02:00
|
|
|
args=($@)
|
|
|
|
for ((i=0; i < ${#args[@]}; i=i + 2)); do
|
2024-01-18 15:50:34 +01:00
|
|
|
sshfs ${serverUser}@${serverHost}:/citadel/${args[$i]}/ $HOME/${args[$i + 1]}/ -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=8
|
2022-04-28 23:36:42 +02:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|