aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils
diff options
context:
space:
mode:
authorShaun Jackman2017-12-11 15:32:57 -0800
committerShaun Jackman2017-12-12 09:25:16 -0800
commita4033c7196ad842ed37ef05110fd58fd7aa33856 (patch)
tree4eb12672d4b1103b1b49ecb31acb50f40d8af3de /Library/Homebrew/utils
parent7b558e05228d3d70182ec3592079e5fe4b2b23ef (diff)
downloadbrew-a4033c7196ad842ed37ef05110fd58fd7aa33856.tar.bz2
Do not specify absolute paths to utilities
Specifying an absolute path to utilities is no longer needed, since environment filtering uses a default PATH.
Diffstat (limited to 'Library/Homebrew/utils')
-rw-r--r--Library/Homebrew/utils/curl.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils/curl.rb b/Library/Homebrew/utils/curl.rb
index 84853047c..cf1735576 100644
--- a/Library/Homebrew/utils/curl.rb
+++ b/Library/Homebrew/utils/curl.rb
@@ -3,7 +3,7 @@ require "open3"
def curl_executable
curl = Pathname.new ENV["HOMEBREW_CURL"]
- curl = Pathname.new "/usr/bin/curl" unless curl.exist?
+ curl = which("curl") unless curl.exist?
return curl if curl.executable?
raise "#{curl} is not executable"
end