aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/info.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-12-20 20:11:54 -0800
committerAdam Vandenberg2011-12-20 20:11:54 -0800
commitfca07369ab5c81d3abaa77841b9403a73efa2f78 (patch)
tree13406f170ee1f56d2684b0f11ea8797c07db9556 /Library/Homebrew/cmd/info.rb
parente65649aeb045bbc4529513b989a909cc13fed358 (diff)
downloadbrew-fca07369ab5c81d3abaa77841b9403a73efa2f78.tar.bz2
Omit empty caveats
Diffstat (limited to 'Library/Homebrew/cmd/info.rb')
-rw-r--r--Library/Homebrew/cmd/info.rb3
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