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)
|
def self.system(cmd, *args, **options)
|
||||||
if verbose?
|
if verbose?
|
||||||
puts "#{cmd} #{args * " "}".gsub(RUBY_PATH, "ruby")
|
out = (options[:out] == :err) ? $stderr : $stdout
|
||||||
.gsub($LOAD_PATH.join(File::PATH_SEPARATOR).to_s, "$LOAD_PATH")
|
out.puts "#{cmd} #{args * " "}".gsub(RUBY_PATH, "ruby")
|
||||||
|
.gsub($LOAD_PATH.join(File::PATH_SEPARATOR).to_s, "$LOAD_PATH")
|
||||||
end
|
end
|
||||||
_system(cmd, *args, **options)
|
_system(cmd, *args, **options)
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user