aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-09-25 15:46:58 +0100
committerMike McQuaid2017-09-25 15:46:58 +0100
commit598ea0cdece3646ce1c202862e01a4464180ed88 (patch)
tree042ba5e1e82974ab900a0d5693285168a94ce84a /Library/Homebrew/cmd
parent3cd2373e2f961ad4c37109b518b13af81b865285 (diff)
downloadbrew-598ea0cdece3646ce1c202862e01a4464180ed88.tar.bz2
portable-ruby: fix installation on Leopard.
Download it insecurely there and require `rubygems` for `Gem::Version`.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/vendor-install.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/vendor-install.sh b/Library/Homebrew/cmd/vendor-install.sh
index 227731244..2e99c3b46 100644
--- a/Library/Homebrew/cmd/vendor-install.sh
+++ b/Library/Homebrew/cmd/vendor-install.sh
@@ -45,6 +45,11 @@ fetch() {
curl_args[${#curl_args[*]}]="--progress-bar"
fi
+ if [[ "$HOMEBREW_MACOS_VERSION_NUMERIC" -lt "100600" ]]
+ then
+ curl_args[${#curl_args[*]}]="--insecure"
+ fi
+
temporary_path="$CACHED_LOCATION.incomplete"
mkdir -p "$HOMEBREW_CACHE"