diff options
| author | Jack Nagel | 2012-12-21 17:14:01 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-12-21 17:14:01 -0600 |
| commit | d0ab4d9eae7330906e8f576d8655a62db64c4a7d (patch) | |
| tree | 6848f514bec24322e94026f85020a01bbf3bfccb /Library | |
| parent | 4eb9620638557667485a1e3f9ec5e1b256645b98 (diff) | |
| download | homebrew-d0ab4d9eae7330906e8f576d8655a62db64c4a7d.tar.bz2 | |
doctor: use a more rubyish conditional
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 8d22b79ad..5947005c7 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -81,9 +81,9 @@ end # Installing MacGPG2 interferes with Homebrew in a big way # http://sourceforge.net/projects/macgpg2/files/ def check_for_macgpg2 - if File.exist? "/Applications/start-gpg-agent.app" or - File.exist? "/Library/Receipts/libiconv1.pkg" or - File.exist? "/usr/local/MacGPG2" + if %w{/Applications/start-gpg-agent.app + /Library/Receipts/libiconv1.pkg + /usr/local/MacGPG2}.any? { |f| File.exist? f } <<-EOS.undent You may have installed MacGPG2 via the package installer. Several other checks in this script will turn up problems, such as stray |
