aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/list.rb
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-02 07:57:21 +0200
committerMarkus Reiter2016-10-15 17:13:38 +0200
commit01d87f810721d8e8faf4b73ff5120923fa7c88ca (patch)
treec4e9d3941758be830549b15a35b83e201b084406 /Library/Homebrew/cmd/list.rb
parent4bfeaaf21259637c1ad1a98b479fc0e4fdaea56e (diff)
downloadbrew-01d87f810721d8e8faf4b73ff5120923fa7c88ca.tar.bz2
Don’t use `puts_columns` if `empty?` or single item.
Diffstat (limited to 'Library/Homebrew/cmd/list.rb')
-rw-r--r--Library/Homebrew/cmd/list.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb
index 01af678a7..93c2545ad 100644
--- a/Library/Homebrew/cmd/list.rb
+++ b/Library/Homebrew/cmd/list.rb
@@ -48,6 +48,7 @@ module Homebrew
a <=> b
end
end
+ return if full_names.empty?
puts_columns full_names
else
ENV["CLICOLOR"] = nil