Skip to content

Commit 68c52c6

Browse files
Fix whitespace
1 parent c8467be commit 68c52c6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sorc/build_compute.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,22 +104,22 @@ while [[ "${finished}" == "false" ]]; do
104104
echo "FATAL ERROR: ${BASH_SOURCE[0]} rocoto failed with state '${state}'"
105105
# Determine which builds failed
106106
echo "$(rocotostat -w "${build_xml}" -d "${build_db}")" > rocotostat.out
107-
line_number=0
108-
rm -f logs/error.logs
107+
line_number=0
108+
rm -f logs/error.logs
109109
set -x
110-
while read -r line; do
110+
while read -r line; do
111111
(( line_number += 1 ))
112-
# Skip the first two lines (header)
112+
# Skip the first two lines (header)
113113
if [[ ${line_number} -lt 3 ]]; then
114114
continue
115-
fi
115+
fi
116116

117117
if [[ "${line}" =~ "DEAD" || "${line}" =~ "UNKNOWN" ||
118118
"${line}" =~ "UNAVAILABLE" || "${line}" =~ "FAIL" ]]; then
119119
job=$(echo "${line}" | awk '{ print $2 }')
120120
log_file="logs/build_${job}"
121-
echo "${log_file}" >> logs/error.logs
122-
echo "Rocoto reported that the build failed for ${job}"
121+
echo "${log_file}" >> logs/error.logs
122+
echo "Rocoto reported that the build failed for ${job}"
123123
fi
124124
done < rocotostat.out
125125
exit 2

0 commit comments

Comments
 (0)