aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-06-26 20:19:41 -0500
committerMisty De Meo2013-06-26 20:19:55 -0500
commit37469d30720376eb5a8b8d2e9b353e268a0c22c6 (patch)
treecfe67ca1de4876ffae96295dc592025c375a4b41 /Library
parent0617959b7be1343664c94cff98d4c00b8104db2f (diff)
downloadhomebrew-37469d30720376eb5a8b8d2e9b353e268a0c22c6.tar.bz2
info: Only print Cellar info if it exists
Diffstat (limited to 'Library')
-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 0b757b388..d794cf26f 100644
--- a/Library/Homebrew/cmd/info.rb
+++ b/Library/Homebrew/cmd/info.rb
@@ -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]