Skip to content
Snippets Groups Projects
Commit 7a96b6a7 authored by Xu Cheng's avatar Xu Cheng
Browse files

info: fix plural

parent 036b9f69
No related branches found
No related tags found
No related merge requests found
......@@ -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|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment