mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 22:05:38 +00:00
14 lines
189 B
Bash
14 lines
189 B
Bash
|
#!/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
|