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 1, 2023
1 parent 5183a3e commit 1a55772
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 1a55772

Please sign in to comment.