info: Only print Cellar info if it exists

This commit is contained in:
Misty De Meo 2013-06-26 20:19:41 -05:00
parent cf5c97bbcb
commit 5627ed21ce

View File

@ -25,7 +25,7 @@ module Homebrew extend self
info_formula f
puts '---'
end
else
elsif HOMEBREW_CELLAR.exist?
puts "#{HOMEBREW_CELLAR.children.length} kegs, #{HOMEBREW_CELLAR.abv}"
end
elsif valid_url ARGV[0]