aboutsummaryrefslogtreecommitdiff
path: root/bin/shock
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/shock
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/shock')
-rwxr-xr-xbin/shock1
1 files changed, 1 insertions, 0 deletions
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