summaryrefslogtreecommitdiff
path: root/.cirrus.yml
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2023-03-10 16:41:25 -0800
committerDan Fandrich <dan@coneharvesters.com>2023-03-10 16:41:25 -0800
commitc2b7249db213cd5c5debf8d8b6be23003a4cf200 (patch)
tree41e3123f4ecbd19d435435fe91105de7c21c303a /.cirrus.yml
parent544a7f804d176d97a7c505d5ab689aa83e583427 (diff)
downloadcurl-c2b7249db213cd5c5debf8d8b6be23003a4cf200.tar.gz
CI: fix retrying on brew failures
The previous attempt didn't consider that the shell would exit immediately after the false statement in the retry case. Follow-up to dc141a37
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 4886e413a..309491a63 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -210,7 +210,7 @@ macos_task:
pkginstall_script:
- echo libtool autoconf automake pkg-config ${install_packages} | xargs -Ix -n1 echo brew '"x"' > /tmp/Brewfile
- - "for i in 1 2 3; do brew update && brew bundle install --no-lock --file /tmp/Brewfile && break || { echo Error: wait to try again; sleep 10; false; } done"
+ - "while [[ $? == 0 ]]; do for i in 1 2 3; do brew update && brew bundle install --no-lock --file /tmp/Brewfile && break 2 || { echo Error: wait to try again; sleep 10; } done; false Too many retries; done"
- sudo -H python3 -m pip install --upgrade pip
- sudo -H python3 -m pip install impacket
configure_script: