X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=mount-latest-remote;h=c80c00347a55033e01fdd977f5d778294b767c38;hp=bcd9e284e1703c3c686860ae2cae3d3a5cd5760f;hb=51c8b40fd2aac71d29dc9298ca65425725ad1edd;hpb=0d347f93336619d663f1f3cdd771b92df390c494 diff --git a/mount-latest-remote b/mount-latest-remote index bcd9e28..c80c003 100755 --- a/mount-latest-remote +++ b/mount-latest-remote @@ -16,7 +16,7 @@ # usage: HOST [mount-latest-subvol args] -source /usr/local/lib/err +source /usr/local/lib/bash-bear script_dir=$(dirname $(readlink -f "$BASH_SOURCE")) @@ -49,7 +49,7 @@ if [[ $tg == *:* ]]; then rsynctg="[$tg]" fi # R = relative, t = times, O = omit-dir-times, p = perms -er rsync -RtOp bin/{mount-latest-subvol,check-subvol-stale} lib/err "root@$rsynctg:/usr/local" || continue +er rsync -RtOp bin/{mount-latest-subvol,check-subvol-stale} lib/bash-bear "root@$rsynctg:/usr/local" || continue # note: this can hang if we have an old nfs mount. er ssh root@$tg timeout -s 9 600 /usr/local/bin/mount-latest-subvol "$@"