Commit 55838bc291

LemonBoy <thatlemon@gmail.com>
2020-12-04 17:31:27
ci: Use eval to make retry() work for pipelines too
1 parent 2282eb1
Changed files (1)
ci
ci/azure/linux_script
@@ -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