From ad20bd817000629da5c277c63cd3fc9d68ce881b Mon Sep 17 00:00:00 2001 From: DavidHuber Date: Mon, 30 Oct 2023 15:56:01 +0000 Subject: [PATCH] Fixed error checking #1978 --- sorc/build_all.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sorc/build_all.sh b/sorc/build_all.sh index 44f9c1fc83..691c453d44 100755 --- a/sorc/build_all.sh +++ b/sorc/build_all.sh @@ -267,7 +267,8 @@ while [[ ${#build_jobs[@]} -gt 0 ]]; do # Test if each job is complete and if so, notify and remove from the array if [[ -n "${build_ids[${build}]+0}" ]]; then if ! ps -p "${build_ids[${build}]}" > /dev/null; then - wait "${build_ids[${build}]}" && build_stat=$? + wait "${build_ids[${build}]}" + build_stat=$? errs=$((errs+build_stat)) if [[ ${build_stat} == 0 ]]; then echo "${build} completed successfully!"