diff options
| author | Jack Nagel | 2012-07-12 03:01:28 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-07-12 03:01:28 -0500 |
| commit | 11963f038ac9c0308755c4fea869e94a0330a3e6 (patch) | |
| tree | b694240f5f638eea3b6f07108ce6a9cacb7e63e3 | |
| parent | f681883ed95a39a37413dd1fda0b53349767f2fc (diff) | |
| download | homebrew-11963f038ac9c0308755c4fea869e94a0330a3e6.tar.bz2 | |
doctor: fix incorrect usage of 'or'
Eventually I will stop making this mistake.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 2 |
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. |
