Skip to content

Commit

Permalink
Implement Ben's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
a-b authored Dec 27, 2023
1 parent d39708c commit 170d417
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ while true; do
set -e
if [[ $status > 0 ]] ; then
echo "$(date --rfc-3339=ns) ccng_monit_http_healthcheck failed to curl <${URL}>: exit code $status"
[[ $status != 7 ]] && exit $status
if [[ $status != 7 ]] ; then
exit $status
fi
fi
sleep 10
done

0 comments on commit 170d417

Please sign in to comment.