Merge pull request #16163 from apainintheneck/system-verbose-print-to-stderr-on-request
utils: Homebrew.system respect stderr
This commit is contained in:
commit
98e06d98b9
@ -43,8 +43,9 @@ module Homebrew
|
||||
|
||||
def self.system(cmd, *args, **options)
|
||||
if verbose?
|
||||
puts "#{cmd} #{args * " "}".gsub(RUBY_PATH, "ruby")
|
||||
.gsub($LOAD_PATH.join(File::PATH_SEPARATOR).to_s, "$LOAD_PATH")
|
||||
out = (options[:out] == :err) ? $stderr : $stdout
|
||||
out.puts "#{cmd} #{args * " "}".gsub(RUBY_PATH, "ruby")
|
||||
.gsub($LOAD_PATH.join(File::PATH_SEPARATOR).to_s, "$LOAD_PATH")
|
||||
end
|
||||
_system(cmd, *args, **options)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user