Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 9e8ffa9

Browse files
committed
Only use curl -k on Leopard
1 parent 7c85b33 commit 9e8ffa9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

install

+4-3
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,10 @@ Dir.chdir HOMEBREW_PREFIX do
155155
else
156156
# -m to stop tar erroring out if it can't modify the mtime for root owned directories
157157
# pipefail to cause the exit status from curl to propogate if it fails
158-
# we use -k because OS X curl has a bunch of bad SSL certificates
159-
# you may want to remove the -k flag from your fork!
160-
system "/bin/bash -o pipefail -c '/usr/bin/curl -skSfL https://github.com/mxcl/homebrew/tarball/master | /usr/bin/tar xz -m --strip 1'"
158+
# we use -k for curl because Leopard has a bunch of bad SSL certificates
159+
curl_flags = "fsSL"
160+
curl_flags << "k" if macos_version == 10.5
161+
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'"
161162
end
162163
end
163164

0 commit comments

Comments
 (0)