aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-07-05 15:42:28 -0500
committerJack Nagel2012-07-05 15:42:28 -0500
commit7f9c606504c577a55c84e2b599062c8bdcbaf3ad (patch)
treef51f6afdcc73dc7e9d38075ebec7f7bf597c98b3 /Library
parentbac30f4df7d1b2fdfd8a59210ff29a91b31a157f (diff)
downloadhomebrew-7f9c606504c577a55c84e2b599062c8bdcbaf3ad.tar.bz2
Fix 'or' precedence errors
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/macos.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index c0d31e6fe..328b90419 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -193,7 +193,7 @@ module MacOS extend self
# Ask Spotlight where Xcode is. If the user didn't install the
# helper tools and installed Xcode in a non-conventional place, this
# is our only option. See: http://superuser.com/questions/390757
- path = app_with_bundle_id(XCODE_4_BUNDLE_ID) or app_with_bundle_id(XCODE_3_BUNDLE_ID)
+ path = app_with_bundle_id(XCODE_4_BUNDLE_ID) || app_with_bundle_id(XCODE_3_BUNDLE_ID)
unless path.nil?
path += "Contents/Developer"
@@ -319,7 +319,7 @@ module MacOS extend self
# This returns the version number of XQuartz, not of the upstream X.org
# (which is why it is not called x11_version). Note that the X11.app
# distributed by Apple is also XQuartz, and therefore covered by this method.
- path = app_with_bundle_id(XQUARTZ_BUNDLE_ID) or app_with_bundle_id(APPLE_X11_BUNDLE_ID)
+ path = app_with_bundle_id(XQUARTZ_BUNDLE_ID) || app_with_bundle_id(APPLE_X11_BUNDLE_ID)
version = if not path.nil? and path.exist?
`mdls -raw -name kMDItemVersion #{path}`.strip
end