for tg; do
scp $script_dir/{mount-latest-subvol,check-subvol-stale} \
root@$tg:/usr/local/bin
- ssh root@$tg bash <<'EOF'
+ if ! ssh root@$tg bash <<'EOF'
set -e
chmod +x /usr/local/bin/{mount-latest-subvol,check-subvol-stale}
mount-latest-subvol
EOF
+ then
+ echo "$0: warning: failed mount-latest-subvol on $tg"
+ fi
done