diff options
| author | Mike McQuaid | 2017-12-13 08:56:31 +0000 |
|---|---|---|
| committer | GitHub | 2017-12-13 08:56:31 +0000 |
| commit | 9a0981e0eb653b9ef27f5148a093ec397d066cef (patch) | |
| tree | cc8ce9b35040d3a6b90853061faf52c1537a7fff /Library/Homebrew/utils | |
| parent | 4b849dacd285be0e53e6cef7ee62e6b1e689e3e5 (diff) | |
| parent | ce85e3b3b57d29236a6ff1bcc7809f65e9e18867 (diff) | |
| download | brew-9a0981e0eb653b9ef27f5148a093ec397d066cef.tar.bz2 | |
Merge pull request #3566 from sjackman/path
Do not specify absolute paths to utilities
Diffstat (limited to 'Library/Homebrew/utils')
| -rw-r--r-- | Library/Homebrew/utils/curl.rb | 2 |
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 |
