diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-01-15 11:59:44 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-01-15 12:27:21 +1300 |
commit | cee464e67edd5124bfa954fd601fde5c4a939322 (patch) | |
tree | 99b0d84ff0ab874f58b6273f18688d5232c17f04 /bin | |
parent | Quote EDITOR/VISUAL assignments for clarity (diff) | |
download | dotfiles-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.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sra.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |