From 1a5577283395ca894d0971a1a5a4759b3b34eddc Mon Sep 17 00:00:00 2001 From: gr0vity-dev Date: Sat, 1 Jul 2023 20:41:55 +0200 Subject: [PATCH] Retry "brew update" up to 5 times with 15s interval --- ci/prepare/macos/prepare.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/prepare/macos/prepare.sh b/ci/prepare/macos/prepare.sh index 5ca21a9b82..b66fedaac7 100755 --- a/ci/prepare/macos/prepare.sh +++ b/ci/prepare/macos/prepare.sh @@ -1,7 +1,9 @@ #!/bin/bash set -euox pipefail -brew update +#Homebrew randomly fails to update. Retry 5 times with 15s interval +for i in {1..5}; do brew update && break || { echo "Update failed, retrying..."; sleep 15; }; done + brew install coreutils brew install qt@5