aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-07-12 03:01:28 -0500
committerJack Nagel2012-07-12 03:01:28 -0500
commit11963f038ac9c0308755c4fea869e94a0330a3e6 (patch)
treeb694240f5f638eea3b6f07108ce6a9cacb7e63e3 /Library
parentf681883ed95a39a37413dd1fda0b53349767f2fc (diff)
downloadhomebrew-11963f038ac9c0308755c4fea869e94a0330a3e6.tar.bz2
doctor: fix incorrect usage of 'or'
Eventually I will stop making this mistake. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/doctor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 3d45dc1a9..cd16d0ba3 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -402,7 +402,7 @@ def check_xcode_select_path
# with the advent of CLT-only support, we don't need xcode-select
return if MacOS.clt_installed?
unless File.file? "#{MacOS.xcode_folder}/usr/bin/xcodebuild" and not MacOS.xctools_fucked?
- path = MacOS.app_with_bundle_id(MacOS::XCODE_4_BUNDLE_ID) or MacOS.app_with_bundle_id(MacOS::XCODE_3_BUNDLE_ID)
+ path = MacOS.app_with_bundle_id(MacOS::XCODE_4_BUNDLE_ID) || MacOS.app_with_bundle_id(MacOS::XCODE_3_BUNDLE_ID)
path = '/Developer' if path.nil? or not path.directory?
<<-EOS.undent
Your Xcode is configured with an invalid path.