Skip to content

Commit

Permalink
Fixed error checking NOAA-EMC#1978
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Oct 30, 2023
1 parent b68d04d commit ad20bd8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sorc/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"
Expand Down

0 comments on commit ad20bd8

Please sign in to comment.