diff --git a/templates/default/retryable_health_check.sh.erb b/templates/default/retryable_health_check.sh.erb index 945d8ad7..73e7533f 100644 --- a/templates/default/retryable_health_check.sh.erb +++ b/templates/default/retryable_health_check.sh.erb @@ -23,5 +23,8 @@ _run_health_check () { sleep "$sleep" done + if [ -n "$EXIT_ERROR_CODE" ]; then + exit $EXIT_ERROR_CODE + fi exit $result }