diff options
| author | Xu Cheng | 2015-06-08 19:05:12 +0800 | 
|---|---|---|
| committer | Xu Cheng | 2015-06-08 19:05:12 +0800 | 
| commit | 7a96b6a7fa2cd14af2f115ca5c8a5378a1bd1aac (patch) | |
| tree | 5389cd593a720ad22cc4cd531d459d92cf3be4af /Library/Homebrew/cmd/info.rb | |
| parent | 036b9f691340001dc72f5ffc75982525217c3008 (diff) | |
| download | brew-7a96b6a7fa2cd14af2f115ca5c8a5378a1bd1aac.tar.bz2 | |
info: fix plural
Diffstat (limited to 'Library/Homebrew/cmd/info.rb')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 3 | 
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| | 
