Skip to content

Commit

Permalink
[HWORKS-168] Override error exit code (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
kouzant authored Oct 17, 2022
1 parent c6062cf commit c92fc26
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/default/retryable_health_check.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ _run_health_check () {
sleep "$sleep"
done

if [ -n "$EXIT_ERROR_CODE" ]; then
exit $EXIT_ERROR_CODE
fi
exit $result
}

0 comments on commit c92fc26

Please sign in to comment.