aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index beb9e05cb..8a8fa46b8 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -175,7 +175,12 @@ def quiet_system cmd, *args
end
def curl *args
- curl = Pathname.new '/usr/bin/curl'
+ brewed_curl = HOMEBREW_PREFIX/"opt/curl/bin/curl"
+ curl = if MacOS.version <= "10.6" && brewed_curl.exist?
+ brewed_curl
+ else
+ Pathname.new '/usr/bin/curl'
+ end
raise "#{curl} is not executable" unless curl.exist? and curl.executable?
flags = HOMEBREW_CURL_ARGS