utils#system: improve verbose output.
This previously output the hilarious long and unnecessary LOAD_PATH.
This commit is contained in:
parent
e80008d6de
commit
f3afedb4ff
@ -26,7 +26,7 @@ module Homebrew
|
||||
ruby_args.parse
|
||||
|
||||
begin
|
||||
safe_system ENV["HOMEBREW_RUBY_PATH"],
|
||||
safe_system RUBY_PATH,
|
||||
"-I", $LOAD_PATH.join(File::PATH_SEPARATOR),
|
||||
"-rglobal", "-rdev-cmd/irb",
|
||||
*ARGV
|
||||
|
||||
@ -35,7 +35,10 @@ module Homebrew
|
||||
end
|
||||
|
||||
def system(cmd, *args, **options)
|
||||
puts "#{cmd} #{args * " "}" if ARGV.verbose?
|
||||
if ARGV.verbose?
|
||||
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