path: root/coin/provisioning/common/macos/
diff options
authorDimitrios Apostolou <>2020-02-06 19:45:36 +0100
committerDimitrios Apostolou <>2020-02-15 07:38:35 +0100
commitc0033df4b98eee349fcd7b92f35cb6ee4ca18927 (patch)
tree187037f23d3b9a4f97d2a5b72cbe75f2bd04027d /coin/provisioning/common/macos/
parent7b4b2f86a03a176fa5fe0ca1059dc4935c1e665f (diff)
Execute a specific version of homebrew install script
Also first try to download it from local mirror. This install script appears to be doing a lot of git-cloning and downloading itself though, so it is still far from the ideal solution: to only download from locally cached endpoints. Task-number: QTQAINFRA-3134 Change-Id: I32131045d6e62f302ec666b4ac055ca5ee9662d5 Reviewed-by: Heikki Halmet <>
Diffstat (limited to 'coin/provisioning/common/macos/')
1 files changed, 13 insertions, 4 deletions
diff --git a/coin/provisioning/common/macos/ b/coin/provisioning/common/macos/
index 715477c0..66463c44 100755
--- a/coin/provisioning/common/macos/
+++ b/coin/provisioning/common/macos/
@@ -1,12 +1,21 @@
-#!/usr/bin/env bash
# Will install homebrew package manager for macOS.
# WARNING: Requires commandlinetools
-# TODO audit and cache this file locally, see QTQAINFRA-3134
-curl -L -o /tmp/homebrew_install
+set -e
+. "$(dirname "$0")"/../../common/unix/
+DownloadURL \
+ \
+ \
+ b9782cc0b550229de77b429b56ffce04157e60486ab9df00461ccf3dad565b0a \
+ /tmp/homebrew_install
/usr/bin/ruby /tmp/homebrew_install </dev/null
-brew update
+# No need to manually do `brew update`, the homebrew installer script does it.
+### brew update