aboutsummaryrefslogtreecommitdiff
path: root/lint
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
parentHandle POSIX correctness in ~/.bash_profile (diff)
downloaddotfiles-c8ab406749124d2e762ad5cf53963070113afd0f.tar.gz
dotfiles-c8ab406749124d2e762ad5cf53963070113afd0f.zip
Apply runtime shebanging to POSIX shell
Diffstat (limited to 'lint')
-rwxr-xr-xlint/bin11
-rwxr-xr-xlint/games11
2 files changed, 2 insertions, 20 deletions
diff --git a/lint/bin b/lint/bin
index 1130e432..ff7de0b7 100755
--- a/lint/bin
+++ b/lint/bin
@@ -1,11 +1,2 @@
#!/bin/sh
-for bin in bin/* ; do
- [ -f "$bin" ] || continue
- hb=$(sed 1q "$bin") || exit
- case $hb in
- *sh)
- printf '%s\n' "$bin"
- shellcheck -- "$bin"
- ;;
- esac
-done
+find bin -type f -name '*.sh' -print -exec shellcheck -e SC1090 -s sh -- {} +
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 -- {} +