robustness
authorIan Kelling <ian@iankelling.org>
Fri, 2 Aug 2019 05:01:12 +0000 (01:01 -0400)
committerIan Kelling <ian@iankelling.org>
Fri, 2 Aug 2019 05:01:12 +0000 (01:01 -0400)
mount-latest-remote

index 2b5ca59fd81bfdf4efbf27385e22e86bfca3b3c5..279a61b4dcb2bdebadf8aafdcf3b0469f9d3f5e3 100755 (executable)
@@ -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