aboutsummaryrefslogtreecommitdiff
path: root/lint/games.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-10-31 23:07:20 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-10-31 23:07:20 +1300
commit9d044a7dae36d42d620a1a6bc63a43aab9a6b8b7 (patch)
tree92b1f50e6a584611ae63778734a38f132982004b /lint/games.sh
parentMerge branch 'release/v0.1.0' (diff)
parentBump version number to 0.2.0 (diff)
downloaddotfiles-48b26b2082e4d707965c3115ab426966e130ca31.tar.gz (sig)
dotfiles-48b26b2082e4d707965c3115ab426966e130ca31.zip
Merge branch 'release/v0.2.0'v0.2.0
Diffstat (limited to 'lint/games.sh')
-rw-r--r--lint/games.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/lint/games.sh b/lint/games.sh
index 6e3e3024..6d51ba0d 100644
--- a/lint/games.sh
+++ b/lint/games.sh
@@ -1 +1,7 @@
-find games -type f -name '*.sh' -print -exec shellcheck -e SC1090 -s sh -- {} +
+# POSIX sh
+set --
+for game in games/*.sh ; do
+ set -- "$@" "${game%.sh}"
+done
+shellcheck -e SC1090 -- "$@" || exit
+printf 'POSIX shell games linted successfully.\n'