diff --git a/ci/prepare/macos/prepare.sh b/ci/prepare/macos/prepare.sh index b66fedaa..da5ad9cb 100755 --- a/ci/prepare/macos/prepare.sh +++ b/ci/prepare/macos/prepare.sh @@ -1,7 +1,7 @@ #!/bin/bash set -euox pipefail -#Homebrew randomly fails to update. Retry 5 times with 15s interval +# 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 @@ -10,4 +10,4 @@ brew install qt@5 brew link qt@5 # Workaround: https://github.com/Homebrew/homebrew-core/issues/8392 -echo "$(brew --prefix qt5)/bin" >> $GITHUB_PATH \ No newline at end of file +echo "$(brew --prefix qt@5)/bin" >> $GITHUB_PATH \ No newline at end of file