utils/popen: redirect stderr to /dev/null rather than close

This commit is contained in:
Bo Anderson 2021-03-19 17:14:59 +00:00
parent 97d4527eba
commit dab04e3321
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

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