aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/extend/os/mac/development_tools.rb
diff options
context:
space:
mode:
authorShaun Jackman2017-09-19 10:19:56 -0700
committerShaun Jackman2017-09-20 13:25:37 -0700
commit8bb57187ab57bc10027e55ea2d4cfd141e896286 (patch)
treebc217f4cd56b74fe25f1f5206fc1ac8dcfd644bc /Library/Homebrew/extend/os/mac/development_tools.rb
parent58a1bd6dbf0b041b3c5c23dc190680e82bf64ae0 (diff)
downloadbrew-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
Diffstat (limited to 'Library/Homebrew/extend/os/mac/development_tools.rb')
-rw-r--r--Library/Homebrew/extend/os/mac/development_tools.rb2
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