Skip to content
Snippets Groups Projects
Commit d5085edc authored by Xu Cheng's avatar Xu Cheng
Browse files

curl: fall back to /usr/bin/curl when HOMEBREW_CURL doesn't exist

This can happen when `HOMEBREW_CURL` is set to brewed curl, but during

`brew resinstall curl`, brewed curl's symlink is temporary

unlinked.



So let's fallback to /usr/bin/curl in this case.
parent f3cc0596
No related branches found
No related tags found
No related merge requests found
......@@ -311,6 +311,7 @@ end
def curl(*args)
curl = Pathname.new ENV["HOMEBREW_CURL"]
curl = Pathname.new "/usr/bin/curl" unless curl.exist?
raise "#{curl} is not executable" unless curl.exist? && curl.executable?
flags = HOMEBREW_CURL_ARGS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment