diff options
| author | Misty De Meo | 2013-06-26 20:19:41 -0500 |
|---|---|---|
| committer | Misty De Meo | 2013-06-26 20:19:55 -0500 |
| commit | 5627ed21ce39271f503d45e7ff0cace837ba4b63 (patch) | |
| tree | 96e2c06a82807d630ff47db90a64f075ce8b8a13 /Library/Homebrew/cmd/info.rb | |
| parent | cf5c97bbcb6a536100651edea790b088ad4c643f (diff) | |
| download | brew-5627ed21ce39271f503d45e7ff0cace837ba4b63.tar.bz2 | |
info: Only print Cellar info if it exists
Diffstat (limited to 'Library/Homebrew/cmd/info.rb')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 2 |
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] |
