aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-01-15 11:59:44 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-01-15 12:27:21 +1300
commitcee464e67edd5124bfa954fd601fde5c4a939322 (patch)
tree99b0d84ff0ab874f58b6273f18688d5232c17f04
parent332c91bea2ffb35b6b39722a70c93c248fb64c30 (diff)
downloaddotfiles-cee464e67edd5124bfa954fd601fde5c4a939322.tar.gz
dotfiles-cee464e67edd5124bfa954fd601fde5c4a939322.zip
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.
-rw-r--r--bin/sra.sh3
1 files changed, 2 insertions, 1 deletions
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