aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-10-11 14:02:35 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-10-11 14:02:35 +1300
commitdb7af1220263e154370a0f9c859e2107fbbaa0bb (patch)
tree855563c6befab29453be2a6275d7b0334ef3d549 /bin
parentRemove unused variable (diff)
downloaddotfiles-db7af1220263e154370a0f9c859e2107fbbaa0bb.tar.gz
dotfiles-db7af1220263e154370a0f9c859e2107fbbaa0bb.zip
Silence SC2029 error from shellcheck
It warns me that the "$@" expansion will occur client side, which is intentional, and there doesn't seem to be a way I can appease it otherwise.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/scatter1
-rwxr-xr-xbin/shock1
2 files changed, 2 insertions, 0 deletions
diff --git a/bin/scatter b/bin/scatter
index 5cb62e44..75604491 100755
--- a/bin/scatter
+++ b/bin/scatter
@@ -28,6 +28,7 @@ fi
# avoid clobbering any of the standard streams
while read -r hostname <&3 ; do
printf '%s: %s\n' "$self" "$hostname"
+ # shellcheck disable=SC2029
ssh -qt -- "$hostname" "$@"
printf '\n'
done 3< <(shoal)
diff --git a/bin/shock b/bin/shock
index ef71c5d7..1e288896 100755
--- a/bin/shock
+++ b/bin/shock
@@ -27,6 +27,7 @@ fi
# Execute command, print hostname if it returns zero
while read -r hostname ; do
+ # shellcheck disable=SC2029
if ssh -nq -- "$hostname" "$@" >/dev/null ; then
printf '%s\n' "$hostname"
fi