aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2009-12-18 16:28:30 -0800
committerMax Howell2009-12-20 12:56:47 +0000
commit4545d55004fd341509b4dd6b0cdc4f9fa7046c87 (patch)
treea031dbd2e9e1b3cda32ac331f3bafe9e7716db43 /Library
parent75c43a29e838deff1cb03c7becaba095ff6c435c (diff)
downloadhomebrew-4545d55004fd341509b4dd6b0cdc4f9fa7046c87.tar.bz2
If there is no output, don't find longest length.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index e2c43c65a..38e9de0f8 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?