diff options
| author | Jack Nagel | 2013-02-28 18:04:11 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-28 18:04:11 -0600 |
| commit | 9e8ffa941bdb0bc59a6288276fd369a0788fbd58 (patch) | |
| tree | 92c9b5df07cfaef3c01e3394702528c193970271 | |
| parent | 7c85b33f39685588ba65aa5e559a16191460858a (diff) | |
| download | homebrew-9e8ffa941bdb0bc59a6288276fd369a0788fbd58.tar.bz2 | |
Only use curl -k on Leopard
| -rw-r--r-- | install | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |
