Skip to content

Commit 7233c96

Browse files
committed
Work around brew update failing
1 parent 9640fe5 commit 7233c96

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis/script.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ elif [ "$TARGET" = "Windows" ]; then
5959
mkdir artifacts
6060
cp -a build/*.zip artifacts
6161
elif [ "$TARGET" = "macOS" ]; then
62-
# updating fails sometimes, unable to fetch data off homebrew GitHub repo, so retry a few times
63-
brew update || brew update || brew update || brew update || brew update
62+
# updating fails sometimes, unable to fetch data off homebrew GitHub repo, so keep retrying
63+
until brew update; do
64+
sleep 30
65+
done
6466
brew install p7zip
6567
mkdir -p tmp/tmp
6668
cd tmp/tmp

0 commit comments

Comments
 (0)