diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index e2c43c65af..38e9de0f85 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -101,6 +101,8 @@ def curl *args end def puts_columns items, cols = 4 + return if items.empty? + if $stdout.tty? items = items.join("\n") if items.is_a?(Array) items.concat("\n") unless items.empty?