Skip to content

Commit

Permalink
Increase the retry count
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Aug 28, 2022
1 parent 435eb5c commit 33ebc9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ exit_code=0
retry() {
local result=0
local count=1
while [[ "$count" -le 3 ]]; do
local max=10
while [[ "$count" -le "$max" ]]; do
[[ "$result" -ne 0 ]] && {
echo -e "\033[01;31mRetrying (${count}/3)\033[0m" >&2
echo -e "\033[01;31mRetrying (${count}/${max})\033[0m" >&2
}
"$@" && { result=0 && break; } || result="$?"
count="$((count + 1))"
Expand Down

0 comments on commit 33ebc9f

Please sign in to comment.