diff options
| author | Xiao Pan <xyz@flylightning.xyz> | 2024-08-02 15:42:33 -0700 | 
|---|---|---|
| committer | Xiao Pan <xyz@flylightning.xyz> | 2024-08-02 15:42:33 -0700 | 
| commit | c66744e68ba5c6bc33c342f96343ea99288dc9fe (patch) | |
| tree | 0a75ef8608ba97c487ba514986bc3407f331903c /sh/sb | |
| parent | 946c60a4795cce72388846676cd6cf2cbd2115fd (diff) | |
sb: better -m
Diffstat (limited to 'sh/sb')
| -rwxr-xr-x | sh/sb | 3 | 
1 files changed, 2 insertions, 1 deletions
| @@ -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 | 
