diff options
| author | Shaun Jackman | 2017-09-19 10:19:56 -0700 |
|---|---|---|
| committer | Shaun Jackman | 2017-09-20 13:25:37 -0700 |
| commit | 8bb57187ab57bc10027e55ea2d4cfd141e896286 (patch) | |
| tree | bc217f4cd56b74fe25f1f5206fc1ac8dcfd644bc | |
| parent | 58a1bd6dbf0b041b3c5c23dc190680e82bf64ae0 (diff) | |
| download | brew-8bb57187ab57bc10027e55ea2d4cfd141e896286.tar.bz2 | |
locate: Suppress stderr
Suppress the error message:
xcrun: error: unable to find utility "gcc-4.0", not a developer tool or in PATH
| -rw-r--r-- | Library/Homebrew/extend/os/mac/development_tools.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/os/mac/development_tools.rb b/Library/Homebrew/extend/os/mac/development_tools.rb index 66b3bf9d2..ed2a1fc9e 100644 --- a/Library/Homebrew/extend/os/mac/development_tools.rb +++ b/Library/Homebrew/extend/os/mac/development_tools.rb @@ -9,7 +9,7 @@ class DevelopmentTools @locate[key] = if (located_tool = original_locate(tool)) located_tool elsif MacOS.version > :tiger - path = Utils.popen_read("/usr/bin/xcrun", "-no-cache", "-find", tool).chomp + path = Utils.popen_read("/usr/bin/xcrun", "-no-cache", "-find", tool, err: :close).chomp Pathname.new(path) if File.executable?(path) end end |
