Skip to content
Snippets Groups Projects
Commit 1cb59ea5 authored by Jack Nagel's avatar Jack Nagel
Browse files

Fix curlrc existence check

Enumerable#one? is not available under Ruby 1.8.6. Further, we really
want #any? here, as setting both HOME and CURL_HOME can trigger a false
negative.

Fixes Homebrew/homebrew#15883.
parent 45e208d2
No related branches found
No related tags found
No related merge requests found
......@@ -484,7 +484,7 @@ def check_user_path_3
end
def check_user_curlrc
if %w[CURL_HOME HOME].one?{|key| ENV[key] and File.exists? "#{ENV[key]}/.curlrc" } then <<-EOS.undent
if %w[CURL_HOME HOME].any?{|key| ENV[key] and File.exists? "#{ENV[key]}/.curlrc" } then <<-EOS.undent
You have a curlrc file
If you have trouble downloading packages with Homebrew, then maybe this
is the problem? If the following command doesn't work, then try removing
......
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