aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-07-31 00:44:59 -0300
committerMisty De Meo2012-07-31 10:54:25 -0300
commit1a48dbc967bdfb03c78240637233c9f9553678fc (patch)
treee6682f79f9b3c7270c5d0c4d61c898862e24391e /Library
parentfcbee284474e69edf6d91030672236426c1ca4a7 (diff)
downloadbrew-1a48dbc967bdfb03c78240637233c9f9553678fc.tar.bz2
xquartz_version: escape spaces for mdls
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/macos.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index d44b7627a..1db630619 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -174,7 +174,7 @@ module MacOS extend self
# distributed by Apple is also XQuartz, and therefore covered by this method.
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
+ `mdls -raw -name kMDItemVersion "#{path}" 2>/dev/null`.strip
end
end