From 805f90b6e49e258f2b3642d02e4a11db2dc68634 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 31 Oct 2017 22:04:48 +1300 Subject: Show explicit success message for `lint-bin` We add an `|| exit` short-circuit for the case of `shellcheck` exiting non-zero. --- lint/bin.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lint') 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' -- cgit v1.2.3