16 lines
210 B
Bash
Executable File
16 lines
210 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# lint bash scripts
|
|
#
|
|
|
|
set -o errexit
|
|
|
|
TMP_FILE="$(mktemp)"
|
|
|
|
find . -type f -name "*.sh" > "${TMP_FILE}"
|
|
|
|
while read -r FILE; do
|
|
echo lint "${FILE}"
|
|
shellcheck -x "${FILE}"
|
|
done < "${TMP_FILE}"
|