authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-12-04 17:31:27+01:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-12-04 17:31:27+01:00
log55838bc2910f3f73762ea513536b74af056ed9ec
treec6326103c145577c6764944363b9a3176564f2c0
parent2282eb1be18fd2c76caec12d21fea55d9820d5b5

ci: Use eval to make retry() work for pipelines too


1 files changed, 1 insertions(+), 1 deletions(-)

ci/azure/linux_script+1-1
...@@ -13,7 +13,7 @@ CMD_WAIT_TIME=10s...@@ -13,7 +13,7 @@ CMD_WAIT_TIME=10s
13# We give up after retrying CMD_MAX_RETRY times.13# We give up after retrying CMD_MAX_RETRY times.
14retry() {14retry() {
15 for i in $(seq 1 "$CMD_MAX_RETRY"); do15 for i in $(seq 1 "$CMD_MAX_RETRY"); do
16 "$@" && return16 eval "$@" && return
17 echo "command \"$@\" failed, retrying..."17 echo "command \"$@\" failed, retrying..."
18 sleep ${CMD_WAIT_TIME}18 sleep ${CMD_WAIT_TIME}
19 done19 done