aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2015-06-08 19:05:12 +0800
committerXu Cheng2015-06-08 19:05:12 +0800
commit7a96b6a7fa2cd14af2f115ca5c8a5378a1bd1aac (patch)
tree5389cd593a720ad22cc4cd531d459d92cf3be4af
parent036b9f691340001dc72f5ffc75982525217c3008 (diff)
downloadbrew-7a96b6a7fa2cd14af2f115ca5c8a5378a1bd1aac.tar.bz2
info: fix plural
-rw-r--r--Library/Homebrew/cmd/info.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index f9aeeae5b..332168ee7 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -22,7 +22,8 @@ module Homebrew
def print_info
if ARGV.named.empty?
if HOMEBREW_CELLAR.exist?
- puts "#{HOMEBREW_CELLAR.children.length} kegs, #{HOMEBREW_CELLAR.abv}"
+ count = HOMEBREW_CELLAR.subdirs.length
+ puts "#{count} keg#{plural(count)}, #{HOMEBREW_CELLAR.abv}"
end
else
ARGV.named.each_with_index do |f,i|