diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-31 22:08:33 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-31 22:08:33 +1300 |
commit | 3fc8bcbef147098fd40ad99a83410d6a994d1579 (patch) | |
tree | 3a8299ee7a4379a9bb1c6b973e77b48b9d240671 /lint/bin.sh | |
parent | Add conditional Bash `check-bin`, `lint-bin` (diff) | |
download | dotfiles-3fc8bcbef147098fd40ad99a83410d6a994d1579.tar.gz dotfiles-3fc8bcbef147098fd40ad99a83410d6a994d1579.zip |
Correct copypaste errors in `check-bin`, `lint-bin`
Use consistent variable names, and strip the correct suffix from the
Bash scripts on iteration.
Diffstat (limited to 'lint/bin.sh')
-rw-r--r-- | lint/bin.sh | 6 |
1 files 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' |