diff options
| author | Jack Nagel | 2012-12-21 17:14:01 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-12-21 17:14:01 -0600 |
| commit | 1780855023dd97bf4103d1c2f10fa74b904443cc (patch) | |
| tree | 7f013e3dde42543eba47d098dff428b12eca1d2d | |
| parent | 73a206a316dcd081a226f341f87673c864c256fa (diff) | |
| download | brew-1780855023dd97bf4103d1c2f10fa74b904443cc.tar.bz2 | |
doctor: use a more rubyish conditional
| -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 |
