From c8ab406749124d2e762ad5cf53963070113afd0f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 5 Apr 2017 20:06:39 +1200 Subject: Apply runtime shebanging to POSIX shell --- lint/bin | 11 +---------- lint/games | 11 +---------- 2 files changed, 2 insertions(+), 20 deletions(-) (limited to 'lint') 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 -- {} + -- cgit v1.2.3