2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-06 09:20:25 +00:00
dotbare/shellcheck.sh
2020-05-11 12:42:19 +10:00

23 lines
301 B
Bash
Executable File

#!/usr/bin/env bash
#
# run shellcheck against all scripts
set -e
scripts=()
while IFS= read -r -d $'\0' line; do
scripts+=("$line")
done < <(
find \
dotbare \
helper/* \
scripts/* \
shellcheck.sh \
-type f \
-print0
)
shellcheck -e SC1090 "${scripts[@]}"
exit $?