From fc3adf98c457d77e7d10dcb76f2b2526d04f975c Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Tue, 31 Jul 2012 00:44:59 -0300 Subject: xquartz_version: escape spaces for mdls --- Library/Homebrew/macos.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3