mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-13 12:15:46 -04:00
CI: Work around Azure Ubuntu mirror issue
This commit is contained in:
13
scripts/retry.sh
Executable file
13
scripts/retry.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
RETRIES=10
|
||||
|
||||
for i in $(seq 1 "$RETRIES"); do
|
||||
"$@" && break
|
||||
if [ "$i" == "$RETRIES" ]; then
|
||||
echo "Command \"$@\" failed after ${RETRIES} retries."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user