summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2024-08-02 15:42:33 -0700
committerXiao Pan <xyz@flylightning.xyz>2024-08-02 15:42:33 -0700
commitc66744e68ba5c6bc33c342f96343ea99288dc9fe (patch)
tree0a75ef8608ba97c487ba514986bc3407f331903c /sh
parent946c60a4795cce72388846676cd6cf2cbd2115fd (diff)
sb: better -m
Diffstat (limited to 'sh')
-rwxr-xr-xsh/sb3
1 files changed, 2 insertions, 1 deletions
diff --git a/sh/sb b/sh/sb
index 4737971..08eacb4 100755
--- a/sh/sb
+++ b/sh/sb
@@ -3,7 +3,8 @@
case "$1" in
# also run commands in current Master computer
- '-m') shift; "$@";;
+ # I use `eval "$*"` instead of just a "$@" here because passing clis to ssh sometimes requires weird quotes like `sb -m 'echo a; echo b'` and I want examples like this to work
+ '-m') shift; eval "$*";;
esac
for branch in $(git -C "$HOME/programs/config_local_arch" branch | awk '!/master/{print ($1=="*")?$2:$1}'); do