aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2009-12-18 16:28:30 -0800
committerMax Howell2009-12-20 12:56:47 +0000
commitf53322442716747eb546fcc5a1a4d2390f84ea84 (patch)
tree50cd484be9eaeece7b573ffd5decf35c8f6f6f38 /Library/Homebrew
parent596d26f8b430bfbe2250a7de90009c5f949997fd (diff)
downloadbrew-f53322442716747eb546fcc5a1a4d2390f84ea84.tar.bz2
If there is no output, don't find longest length.
Diffstat (limited to 'Library/Homebrew')
-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?