2020-05-11 01:56:27 +00:00
|
|
|
#!/usr/bin/env bash
|
2020-05-10 23:41:14 +00:00
|
|
|
#
|
|
|
|
# run shellcheck against all scripts
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-05-22 04:50:53 +00:00
|
|
|
mydir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
cd "${mydir}"/../
|
|
|
|
|
2020-05-10 23:41:14 +00:00
|
|
|
scripts=()
|
|
|
|
while IFS= read -r -d $'\0' line; do
|
|
|
|
scripts+=("$line")
|
|
|
|
done < <(
|
|
|
|
find \
|
|
|
|
dotbare \
|
|
|
|
helper/* \
|
|
|
|
scripts/* \
|
2020-05-22 04:50:53 +00:00
|
|
|
tests/shellcheck.sh \
|
2020-05-10 23:41:14 +00:00
|
|
|
-type f \
|
|
|
|
-print0
|
|
|
|
)
|
|
|
|
|
|
|
|
shellcheck -e SC1090 "${scripts[@]}"
|
2020-06-06 02:00:35 +00:00
|
|
|
shellcheck -e SC1090 --shell=bash "dotbare.plugin.bash"
|
2020-05-10 23:41:14 +00:00
|
|
|
|
|
|
|
exit $?
|