diff options
| author | Misty De Meo | 2012-06-25 16:47:59 -0500 | 
|---|---|---|
| committer | Misty De Meo | 2012-06-25 16:48:06 -0500 | 
| commit | 1af6c60cf8beca2b0019d48a5ae25036ed2ba125 (patch) | |
| tree | 73880e38d2ceb50c1cb15e8142b1f0999d59d323 /Library/Homebrew | |
| parent | 933ef026bcff0bf441f3a864c9c7590a9fbba265 (diff) | |
| download | homebrew-1af6c60cf8beca2b0019d48a5ae25036ed2ba125.tar.bz2 | |
MacOS.sdk_path: silence stderr from xcode-select
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 10fb3b654..43475ed43 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)  | 
