diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-31 22:04:48 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-31 22:04:48 +1300 |
commit | 805f90b6e49e258f2b3642d02e4a11db2dc68634 (patch) | |
tree | 3677d74bcf6742718204f28ad25c58c0abea3073 | |
parent | Correct misleading output for `lint-bin` (diff) | |
download | dotfiles-805f90b6e49e258f2b3642d02e4a11db2dc68634.tar.gz dotfiles-805f90b6e49e258f2b3642d02e4a11db2dc68634.zip |
Show explicit success message for `lint-bin`
We add an `|| exit` short-circuit for the case of `shellcheck` exiting
non-zero.
-rw-r--r-- | lint/bin.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lint/bin.sh b/lint/bin.sh index 16facb6a..db74c3dd 100644 --- a/lint/bin.sh +++ b/lint/bin.sh @@ -2,4 +2,5 @@ set -- for sh in bin/*.sh ; do set "$@" "${sh%.sh}" done -shellcheck -e SC1090 -- "$@" +shellcheck -e SC1090 -- "$@" || exit +printf 'sh(1) binscripts linted successfully.\n' |