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