From bb2e67f37e608f1987348c06c6c1435ea6850568 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 12 Jul 2012 03:01:28 -0500 Subject: [PATCH] doctor: fix incorrect usage of 'or' Eventually I will stop making this mistake. Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 3d45dc1a90..cd16d0ba35 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.