diff options
| author | Jack Nagel | 2012-11-06 19:00:54 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-11-06 19:02:02 -0600 |
| commit | ecab32340d6b7074b014c4f84d0be726756d405f (patch) | |
| tree | 10e5aff20baf6da5dc5995fb38ab4802da0eafaa /Library | |
| parent | afa5150fabd2fb5247e32bcef7ed561635191143 (diff) | |
| download | homebrew-ecab32340d6b7074b014c4f84d0be726756d405f.tar.bz2 | |
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 #15883.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 6f7b3a98b..7d1b96211 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -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 |
