Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 02308d0

Browse files
committed
fixup retry message
1 parent 53657e7 commit 02308d0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.circleci/test.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ retry () {
1313
local n=0
1414

1515
until [ $n -ge $MAX_AUTO_RETRY ]; do
16+
if [ $n -ge 1 ]; then
17+
echo ''
18+
echo run $n of $MAX_AUTO_RETRY failed, trying again ...
19+
echo ''
20+
sleep 15
21+
fi
1622
"$@" && break
1723
n=$[$n+1]
18-
echo ''
19-
echo run $n of $MAX_AUTO_RETRY failed, trying again ...
20-
echo ''
21-
sleep 15
2224
done
2325

2426
if [ $n -eq $MAX_AUTO_RETRY ]; then

0 commit comments

Comments
 (0)