Skip to content

Commit

Permalink
Fix whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHuber-NOAA committed Feb 5, 2025
1 parent c8467be commit 68c52c6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions sorc/build_compute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,22 +104,22 @@ while [[ "${finished}" == "false" ]]; do
echo "FATAL ERROR: ${BASH_SOURCE[0]} rocoto failed with state '${state}'"
# Determine which builds failed
echo "$(rocotostat -w "${build_xml}" -d "${build_db}")" > rocotostat.out
line_number=0
rm -f logs/error.logs
line_number=0
rm -f logs/error.logs
set -x
while read -r line; do
while read -r line; do
(( line_number += 1 ))
# Skip the first two lines (header)
# Skip the first two lines (header)
if [[ ${line_number} -lt 3 ]]; then
continue
fi
fi

if [[ "${line}" =~ "DEAD" || "${line}" =~ "UNKNOWN" ||
"${line}" =~ "UNAVAILABLE" || "${line}" =~ "FAIL" ]]; then
job=$(echo "${line}" | awk '{ print $2 }')
log_file="logs/build_${job}"
echo "${log_file}" >> logs/error.logs
echo "Rocoto reported that the build failed for ${job}"
echo "${log_file}" >> logs/error.logs
echo "Rocoto reported that the build failed for ${job}"
fi
done < rocotostat.out
exit 2
Expand Down

0 comments on commit 68c52c6

Please sign in to comment.