From db7af1220263e154370a0f9c859e2107fbbaa0bb Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 11 Oct 2015 14:02:35 +1300 Subject: 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. --- bin/scatter | 1 + bin/shock | 1 + 2 files changed, 2 insertions(+) (limited to 'bin') 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 -- cgit v1.2.3