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
commitfc3adf98c457d77e7d10dcb76f2b2526d04f975c (patch)
treef765d561f96772789f843f0512c0a3d74bb636a0 /Library
parent20ad5702c5bdb89e7a52c0b7407d58dbbf6a9afd (diff)
downloadhomebrew-fc3adf98c457d77e7d10dcb76f2b2526d04f975c.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