Merge pull request #10890 from Bo98/stderr-dev-null

utils/popen: redirect stderr to /dev/null rather than close
This commit is contained in:
Bo Anderson 2021-03-19 18:16:51 +00:00 committed by GitHub
commit 7e2ba95169
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ module Utils
yield pipe
else
options[:err] ||= :close unless ENV["HOMEBREW_STDERR"]
options[:err] ||= "/dev/null" unless ENV["HOMEBREW_STDERR"]
begin
exec(*args, options)
rescue Errno::ENOENT