Skip to content

Commit

Permalink
Retry "brew update" up to 5 times with 15s interval
Browse files Browse the repository at this point in the history
  • Loading branch information
gr0vity-dev committed Jul 11, 2023
1 parent 2e887b4 commit 6877a57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci/prepare/macos/prepare.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 6877a57

Please sign in to comment.