aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-02-28 18:04:11 -0600
committerJack Nagel2013-02-28 18:04:11 -0600
commit9e8ffa941bdb0bc59a6288276fd369a0788fbd58 (patch)
tree92c9b5df07cfaef3c01e3394702528c193970271
parent7c85b33f39685588ba65aa5e559a16191460858a (diff)
downloadhomebrew-9e8ffa941bdb0bc59a6288276fd369a0788fbd58.tar.bz2
Only use curl -k on Leopard
-rw-r--r--install7
1 files changed, 4 insertions, 3 deletions
diff --git a/install b/install
index 1584e54a3..95a6ec02f 100644
--- a/install
+++ b/install
@@ -155,9 +155,10 @@ Dir.chdir HOMEBREW_PREFIX do
else
# -m to stop tar erroring out if it can't modify the mtime for root owned directories
# pipefail to cause the exit status from curl to propogate if it fails
- # we use -k because OS X curl has a bunch of bad SSL certificates
- # you may want to remove the -k flag from your fork!
- system "/bin/bash -o pipefail -c '/usr/bin/curl -skSfL https://github.com/mxcl/homebrew/tarball/master | /usr/bin/tar xz -m --strip 1'"
+ # we use -k for curl because Leopard has a bunch of bad SSL certificates
+ curl_flags = "fsSL"
+ curl_flags << "k" if macos_version == 10.5
+ system "/bin/bash -o pipefail -c '/usr/bin/curl -#{curl_flags} https://github.com/mxcl/homebrew/tarball/master | /usr/bin/tar xz -m --strip 1'"
end
end