From 68c52c66a6f4b23c6e5f363ac1836e5e9c3a5478 Mon Sep 17 00:00:00 2001 From: David Huber Date: Wed, 5 Feb 2025 07:44:27 -0600 Subject: [PATCH] Fix whitespace --- sorc/build_compute.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sorc/build_compute.sh b/sorc/build_compute.sh index 7bd33add4b..3c9b28bc89 100755 --- a/sorc/build_compute.sh +++ b/sorc/build_compute.sh @@ -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