aboutsummaryrefslogtreecommitdiff
path: root/lint/games
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-04-05 20:06:39 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-04-05 20:46:47 +1200
commitc8ab406749124d2e762ad5cf53963070113afd0f (patch)
tree54c9721a06957ebe7098a211eea803b0230c0f5d /lint/games
parentHandle POSIX correctness in ~/.bash_profile (diff)
downloaddotfiles-c8ab406749124d2e762ad5cf53963070113afd0f.tar.gz
dotfiles-c8ab406749124d2e762ad5cf53963070113afd0f.zip
Apply runtime shebanging to POSIX shell
Diffstat (limited to 'lint/games')
-rwxr-xr-xlint/games11
1 files changed, 1 insertions, 10 deletions
diff --git a/lint/games b/lint/games
index ef451f4e..38299a7f 100755
--- a/lint/games
+++ b/lint/games
@@ -1,11 +1,2 @@
#!/bin/sh
-for game in games/* ; do
- [ -f "$game" ] || continue
- hb=$(sed 1q "$game") || exit
- case $hb in
- *sh)
- printf '%s\n' "$game"
- shellcheck -- "$game"
- ;;
- esac
-done
+find games -type f -name '*.sh' -print -exec shellcheck -e SC1090 -s sh -- {} +