From: Ian Kelling Date: Fri, 2 Aug 2019 05:01:12 +0000 (-0400) Subject: robustness X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=77616920035e0e7c64d54b447df397822dc4370c robustness --- 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