From cee464e67edd5124bfa954fd601fde5c4a939322 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 15 Jan 2018 11:59:44 +1300 Subject: Move ShellCheck line to correct place in sra(1df) ShellCheck 0.4.7 was upset about this: In bin/sra line 7: ssh -qt -- "$hostname" "$@" <&3 # shellcheck disable=SC2029 ^-- SC1073: Couldn't parse this simple command. ^-- SC1126: Place shellcheck directives before commands, not after. ^-- SC1072: Fix any mentioned problems and try again. --- bin/sra.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/sra.sh b/bin/sra.sh index f3ed6f71..36a673e1 100644 --- a/bin/sra.sh +++ b/bin/sra.sh @@ -3,5 +3,6 @@ exec 3<&0 sls | while read -r hostname ; do printf 'sra: %s\n' "$hostname" - ssh -qt -- "$hostname" "$@" <&3 # shellcheck disable=SC2029 + # shellcheck disable=SC2029 + ssh -qt -- "$hostname" "$@" <&3 done -- cgit v1.2.3