X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=mount-latest-remote;h=2b5ca59fd81bfdf4efbf27385e22e86bfca3b3c5;hp=279a61b4dcb2bdebadf8aafdcf3b0469f9d3f5e3;hb=5fc2a328a44bd7aac3110e7d9c49eaa3e0db8aaf;hpb=a5d4a2af585b0eed9c613f3e1557b6c9c760d3de diff --git a/mount-latest-remote b/mount-latest-remote index 279a61b..2b5ca59 100755 --- a/mount-latest-remote +++ b/mount-latest-remote @@ -26,11 +26,10 @@ ret=0 for tg; do scp $script_dir/{mount-latest-subvol,check-subvol-stale} \ - root@$tg:/usr/local/bin || ret=1 - ssh root@$tg bash <<'EOF' || ret=1 + root@$tg:/usr/local/bin + ssh root@$tg bash <<'EOF' set -e chmod +x /usr/local/bin/{mount-latest-subvol,check-subvol-stale} /usr/local/bin/mount-latest-subvol EOF done -exit $ret