|
|
@ -31,7 +31,10 @@ section "Shell Syntax Checks"
|
|
|
|
start_time="$(start_timer)"
|
|
|
|
start_time="$(start_timer)"
|
|
|
|
|
|
|
|
|
|
|
|
for x in $(find -L "${1:-.}" -type f -iname '*.sh'); do
|
|
|
|
for x in $(find -L "${1:-.}" -type f -iname '*.sh'); do
|
|
|
|
|
|
|
|
# expensive call shouldn't be needed when running from a fresh git checkout in CI
|
|
|
|
|
|
|
|
if ! is_CI; then
|
|
|
|
isExcluded "$x" && continue
|
|
|
|
isExcluded "$x" && continue
|
|
|
|
|
|
|
|
fi
|
|
|
|
echo -n "checking shell syntax: $x"
|
|
|
|
echo -n "checking shell syntax: $x"
|
|
|
|
bash -n "$x"
|
|
|
|
bash -n "$x"
|
|
|
|
echo " => OK"
|
|
|
|
echo " => OK"
|
|
|
|