From 77616920035e0e7c64d54b447df397822dc4370c Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Fri, 2 Aug 2019 01:01:12 -0400 Subject: [PATCH] robustness --- mount-latest-remote | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.30.2