Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>pull/1155/head
parent
cbf98fd70b
commit
3de83322e5
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
: "${KALEIDOSCOPE_DIR:=$(pwd)}"
|
||||||
|
cd "${KALEIDOSCOPE_DIR}" || exit 1
|
||||||
|
|
||||||
|
ERROR_COUNT=0
|
||||||
|
|
||||||
|
while read -r SCRIPT; do
|
||||||
|
shellcheck "${SCRIPT}"
|
||||||
|
(( ERROR_COUNT += $? ))
|
||||||
|
done < <(grep -E -n -r -l '(env (ba)?sh)|(/bin/(ba)?sh)' "${KALEIDOSCOPE_DIR}/bin")
|
||||||
|
|
||||||
|
exit $ERROR_COUNT
|
Loading…
Reference in new issue