index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2017-08-24 00:02:04 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-08-24 00:02:04 +0200 |
commit | 832fa561b424e26f6d8c8d1658e8456858aec970 (patch) | |
tree | cd0a6f0c51ae246daf0007bd729df0d24b0e5ef5 | |
parent | a9db8b6d82ff3e43bdfc087cf921cd645edc79e4 (diff) |
-rwxr-xr-x | bin/strict-bashism-check | 12 | ||||
-rwxr-xr-x | conf/default.conf | 2 |
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 diff --git a/conf/default.conf b/conf/default.conf index 007a5fd..f9bf2ea 100755 --- a/conf/default.conf +++ b/conf/default.conf @@ -63,7 +63,7 @@ webserver_directory='/srv/http' # possibly pull in custom modifications -# shellcheck source=conf/local.conf +# shellcheck source=/dev/null [ -r "${base_dir}/conf/local.conf" ] && . "${base_dir}/conf/local.conf" # check / set up environment |