index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/sanity-check | 8 |
diff --git a/bin/sanity-check b/bin/sanity-check index 21c891d..0445183 100755 --- a/bin/sanity-check +++ b/bin/sanity-check @@ -19,6 +19,8 @@ usage() { [ -z "$1" ] && exit 1 || exit "$1" } +exit_code=0 + i_am_insane() { if [ ! -s "${work_dir}/build-master-sanity" ]; then # shellcheck disable=SC2119 @@ -29,7 +31,7 @@ i_am_insane() { "${work_dir}/build-master-sanity" echo 'SANITY CHECK FAILED' >> \ "${tmp_dir}/messages" - exit 1 + exit_code=1 } eval set -- "$( @@ -482,6 +484,10 @@ while [ $# -gt 0 ]; do done +if [ ${exit_code} -ne 0 ]; then + exit ${exit_code} +fi + if [ -f "${work_dir}/build-master-sanity" ]; then rm "${work_dir}/build-master-sanity" # shellcheck disable=SC2119 |