dotfiles
shell, editor, ssh.
git clone https://owenrusk.dev/dotfiles.git
commit 753732c7af1a116208b4874a5e411aab392a3d23 parent d768e2b4ed10dd91d89605c5f6d3ce29d0279b77 author Owen Rusk <owen@papermothgames.com> date 2026-02-03 23:12:40 -0600
both: keep going when one box fails, and say which
| bin/both | +3 | -1 |
diff --git a/bin/both b/bin/both index bdc62bb..3b0c9d7 100755 --- a/bin/both +++ b/bin/both @@ -2,7 +2,9 @@ # the same command on both stillwater boxes [ $# -gt 0 ] || { echo "usage: both command..." >&2; exit 2; } +status=0 for host in sw1 sw2; do printf '== %s\n' "$host"- ssh "$host" "$@"+ ssh "$host" "$@" || { echo "== $host failed ($?)" >&2; status=1; } done +exit $status