From 1780855023dd97bf4103d1c2f10fa74b904443cc Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 21 Dec 2012 17:14:01 -0600 Subject: doctor: use a more rubyish conditional --- Library/Homebrew/cmd/doctor.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3