aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-31 22:31:31 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-31 22:31:31 +1300
commit1601f3e9b40b8d13b3094ec324e0e0cd625994c9 (patch)
tree62cc7b721381468335f90ad76305140751c1d4c6
parentApply stable check and lint methods to games shell (diff)
downloaddotfiles-1601f3e9b40b8d13b3094ec324e0e0cd625994c9.tar.gz
dotfiles-1601f3e9b40b8d13b3094ec324e0e0cd625994c9.zip
Use shell name not command in check/lint messages
This is a little bit clearer and nicer to read, I think.
-rw-r--r--check/bin.sh6
-rw-r--r--lint/bin.sh6
2 files changed, 6 insertions, 6 deletions
diff --git a/check/bin.sh b/check/bin.sh
index d504961d..08b12778 100644
--- a/check/bin.sh
+++ b/check/bin.sh
@@ -2,14 +2,14 @@
for bin in bin/*.sh ; do
sh -n -- "${bin%.sh}" || exit
done
-printf 'sh(1) binscripts parsed successfully.\n'
+printf 'POSIX sh binscripts parsed successfully.\n'
# GNU Bash
if command -v bash >/dev/null 2>&1 ; then
for bin in bin/*.bash ; do
bash -n -- "${bin%.bash}" || exit
done
- printf 'bash(1) binscripts parsed successfully.\n'
+ printf 'GNU Bash binscripts parsed successfully.\n'
else
- printf 'bash(1) not found, skipping checks.\n'
+ printf 'bash(1) not found, skipping GNU Bash checks.\n'
fi
diff --git a/lint/bin.sh b/lint/bin.sh
index 93eb183c..05a0deba 100644
--- a/lint/bin.sh
+++ b/lint/bin.sh
@@ -4,7 +4,7 @@ for bin in bin/*.sh ; do
set "$@" "${bin%.sh}"
done
shellcheck -e SC1090 -- "$@" || exit
-printf 'sh(1) binscripts linted successfully.\n'
+printf 'POSIX sh binscripts linted successfully.\n'
# GNU Bash
if command -v bash >/dev/null 2>&1 ; then
@@ -13,7 +13,7 @@ if command -v bash >/dev/null 2>&1 ; then
set "$@" "${bin%.bash}"
done
shellcheck -e SC1090 -- "$@" || exit
- printf 'bash(1) binscripts linted successfully.\n'
+ printf 'GNU Bash binscripts linted successfully.\n'
else
- printf 'bash(1) not found, skipping lint.\n'
+ printf 'bash(1) not found, skipping GNU Bash lint.\n'
fi