mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
ci: Use eval to make retry() work for pipelines too
This commit is contained in:
parent
2282eb1be1
commit
55838bc291
@ -13,7 +13,7 @@ CMD_WAIT_TIME=10s
|
||||
# We give up after retrying CMD_MAX_RETRY times.
|
||||
retry() {
|
||||
for i in $(seq 1 "$CMD_MAX_RETRY"); do
|
||||
"$@" && return
|
||||
eval "$@" && return
|
||||
echo "command \"$@\" failed, retrying..."
|
||||
sleep ${CMD_WAIT_TIME}
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user