Skip to content

Commit

Permalink
Avoid exiting script
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm committed Jun 29, 2023
1 parent 40b023d commit ad6f501
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .buildkite/scripts/check_for_errors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ for package_type in $(ls build/output-logs/); do
for output_file in $(ls build/output-logs/${package_type}); do
output="build/output-logs/${package_type}/${output_file}"
echo "Any error on ${output}?"
errors=$(grep -E "^Error:" ${output})

echo "Found errors":
echo "${errors}"
if grep -E "^Error:" ${output}; then
echo "Found errors":

errors=$(grep -E "^Error:" ${output})
echo "${errors}"

if [ -n "${errors}" ]; then
cat <<EOF >> markdown.md
- Error found in ${package_type}
> ${errors}
Expand Down

0 comments on commit ad6f501

Please sign in to comment.