index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/strict-bashism-check | 12 |
diff --git a/bin/strict-bashism-check b/bin/strict-bashism-check index 9029471..e477213 100755 --- a/bin/strict-bashism-check +++ b/bin/strict-bashism-check @@ -83,3 +83,15 @@ if [ -n "${errors}" ]; then >&2 echo "${errors}" exit 1 fi + +errors=$( + cd "${tmp_dir}" || \ + echo 'Cannot cd.' + shellcheck -x bin/* conf/* 2>&1 +) + +if [ -n "${errors}" ]; then + >&2 echo 'shellcheck complains about the following:' + >&2 echo "${errors}" + exit 1 +fi |