utils: extend brewed_curl recommended usage to 10.8

Closes Homebrew/homebrew#47646.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Dominyk Tiller 2016-01-03 20:47:50 +00:00
parent 821dbab5f8
commit e7738d067f

View File

@ -293,7 +293,7 @@ end
def curl(*args) def curl(*args)
brewed_curl = HOMEBREW_PREFIX/"opt/curl/bin/curl" brewed_curl = HOMEBREW_PREFIX/"opt/curl/bin/curl"
curl = if MacOS.version <= "10.6" && brewed_curl.exist? curl = if MacOS.version <= "10.8" && brewed_curl.exist?
brewed_curl brewed_curl
else else
Pathname.new "/usr/bin/curl" Pathname.new "/usr/bin/curl"