diff options
| author | Adam Vandenberg | 2011-12-20 20:11:54 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-12-20 20:11:54 -0800 |
| commit | fca07369ab5c81d3abaa77841b9403a73efa2f78 (patch) | |
| tree | 13406f170ee1f56d2684b0f11ea8797c07db9556 /Library/Homebrew/cmd | |
| parent | e65649aeb045bbc4529513b989a909cc13fed358 (diff) | |
| download | brew-fca07369ab5c81d3abaa77841b9403a73efa2f78.tar.bz2 | |
Omit empty caveats
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 72348fc5c..5872f8834 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -70,7 +70,8 @@ module Homebrew extend self end end - if f.caveats + the_caveats = (f.caveats || "").strip + unless the_caveats.empty? puts puts f.caveats puts |
