Skip to content

Commit 53a98d4

Browse files
authored
Merge branch 'customizations/22.8.21' into backports/22.8/60768_update_tzdata_to_2024a
2 parents 3b40f10 + 160efa3 commit 53a98d4

File tree

15 files changed

+785
-706
lines changed

15 files changed

+785
-706
lines changed

.github/retry.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
# Execute command until exitcode is 0 or
3+
# maximum number of retries is reached
4+
# Example:
5+
# ./retry <retries> <delay> <command>
6+
retries=$1
7+
delay=$2
8+
command="${@:3}"
9+
exitcode=0
10+
try=0
11+
until [ "$try" -ge $retries ]
12+
do
13+
echo "$command"
14+
eval "$command"
15+
exitcode=$?
16+
if [ $exitcode -eq 0 ]; then
17+
break
18+
fi
19+
try=$((try+1))
20+
sleep $2
21+
done
22+
exit $exitcode

0 commit comments

Comments
 (0)