From 3fc8bcbef147098fd40ad99a83410d6a994d1579 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 31 Oct 2017 22:08:33 +1300 Subject: Correct copypaste errors in `check-bin`, `lint-bin` Use consistent variable names, and strip the correct suffix from the Bash scripts on iteration. --- lint/bin.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lint/bin.sh b/lint/bin.sh index 5c33aa7d..93eb183c 100644 --- a/lint/bin.sh +++ b/lint/bin.sh @@ -1,7 +1,7 @@ # POSIX sh set -- -for sh in bin/*.sh ; do - set "$@" "${sh%.sh}" +for bin in bin/*.sh ; do + set "$@" "${bin%.sh}" done shellcheck -e SC1090 -- "$@" || exit printf 'sh(1) binscripts linted successfully.\n' @@ -10,7 +10,7 @@ printf 'sh(1) binscripts linted successfully.\n' if command -v bash >/dev/null 2>&1 ; then set -- for bin in bin/*.bash ; do - set "$@" "${sh%.sh}" + set "$@" "${bin%.bash}" done shellcheck -e SC1090 -- "$@" || exit printf 'bash(1) binscripts linted successfully.\n' -- cgit v1.2.3