aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/info.rb
diff options
context:
space:
mode:
authorXu Cheng2015-08-13 20:35:22 +0800
committerXu Cheng2015-08-14 15:52:56 +0800
commit203cecb463a3f7d94a67251c44c5d28ab4341248 (patch)
treecdd16c0c49b23e2bf35602dfdabecdcb824d6d5d /Library/Homebrew/cmd/info.rb
parentc7a484824c9fa4628cf15b4afa3ad7d38ca3f9a7 (diff)
downloadbrew-203cecb463a3f7d94a67251c44c5d28ab4341248.tar.bz2
add Formula.racks
Also exclude symlink when enumerating installed racks.
Diffstat (limited to 'Library/Homebrew/cmd/info.rb')
-rw-r--r--Library/Homebrew/cmd/info.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb
index 854344bd4..21c04ed46 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -22,7 +22,7 @@ module Homebrew
def print_info
if ARGV.named.empty?
if HOMEBREW_CELLAR.exist?
- count = HOMEBREW_CELLAR.subdirs.length
+ count = Formula.racks.length
puts "#{count} keg#{plural(count)}, #{HOMEBREW_CELLAR.abv}"
end
else