Commit 95fbf878 authored by David Eichmann's avatar David Eichmann 🏋 Committed by Ben Gamari

CircleCI: Fix check for git push retry limit.

Test Plan: Observe CircleCI

Reviewers: bgamari

Reviewed By: bgamari

Subscribers: rwbarton, carter

Differential Revision: https://phabricator.haskell.org/D5464
parent 4147df3a
......@@ -42,9 +42,9 @@ function reset_append_note_push {
# Push the metrics file as a git note. This may fail if another task pushes a note first. In that case
# the latest note is fetched and appended.
MAX_RETRY=20
until reset_append_note_push || [ MAX_RETRY = 0 ]
until reset_append_note_push || [ $MAX_RETRY -le 0 ]
do
((MAX_RETRY--))
echo ""
echo "Failed to push git notes. Fetching, appending, and retrying..."
echo "Failed to push git notes. Fetching, appending, and retrying... $MAX_RETRY retries left."
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment