2
0
mirror of https://github.com/kazhala/dotbare synced 2024-11-02 09:40:27 +00:00
dotbare/tests/shellcheck.sh

27 lines
440 B
Bash
Raw Normal View History

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[@]}"
shellcheck -e SC1090 --shell=bash "dotbare.plugin.bash"
2020-05-10 23:41:14 +00:00
exit $?