diff options
| author | Adam Vandenberg | 2009-12-18 16:28:30 -0800 |
|---|---|---|
| committer | Max Howell | 2009-12-20 12:56:47 +0000 |
| commit | f53322442716747eb546fcc5a1a4d2390f84ea84 (patch) | |
| tree | 50cd484be9eaeece7b573ffd5decf35c8f6f6f38 /Library/Homebrew | |
| parent | 596d26f8b430bfbe2250a7de90009c5f949997fd (diff) | |
| download | brew-f53322442716747eb546fcc5a1a4d2390f84ea84.tar.bz2 | |
If there is no output, don't find longest length.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/utils.rb | 2 |
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? |
