2020-02-26 16:54:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# lint bash scripts
|
|
|
|
#
|
|
|
|
|
|
|
|
set -o errexit
|
|
|
|
|
|
|
|
TMP_FILE="$(mktemp)"
|
|
|
|
|
2020-02-26 23:33:46 +00:00
|
|
|
find . -type f -name "*.sh" > "${TMP_FILE}"
|
2020-02-26 16:54:14 +00:00
|
|
|
|
|
|
|
while read -r FILE; do
|
|
|
|
echo lint "${FILE}"
|
|
|
|
shellcheck -x "${FILE}"
|
|
|
|
done < "${TMP_FILE}"
|
|
|
|
|
|
|
|
rm "${TMP_FILE}"
|