diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 63824dd53e..5d54123121 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -111,15 +111,16 @@ module Kernel puts sput end - def ohai_stdout_or_stderr(message) + def ohai_stdout_or_stderr(message, *sput) if $stdout.tty? - ohai(message) + ohai(message, *sput) else $stderr.puts(ohai_title(message)) + $stderr.puts(sput) end end - def puts_stdout_or_stderr(message) + def puts_stdout_or_stderr(*message) if $stdout.tty? puts(message) else