From f53322442716747eb546fcc5a1a4d2390f84ea84 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 18 Dec 2009 16:28:30 -0800 Subject: [PATCH] If there is no output, don't find longest length. --- Library/Homebrew/utils.rb | 2 ++ 1 file changed, 2 insertions(+) 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?