From bfec2ac0907657155ee65c3c2f5660d62e5916e1 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Mon, 25 Jun 2012 16:47:59 -0500 Subject: [PATCH] MacOS.sdk_path: silence stderr from xcode-select --- Library/Homebrew/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 10fb3b6545..43475ed434 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -361,7 +361,7 @@ module MacOS extend self def sdk_path(v=MacOS.version) # The path of the MacOSX SDK. - if !MacOS.xctools_fucked? and File.directory? `xcode-select -print-path`.chomp + if !MacOS.xctools_fucked? and File.directory? `xcode-select -print-path 2>/dev/null`.chomp path = `#{locate('xcodebuild')} -version -sdk macosx#{v} Path 2>/dev/null`.strip elsif File.directory? '/Developer/SDKs/MacOS#{v}.sdk' # the old default (or wild wild west style)