Omit empty caveats
This commit is contained in:
parent
e65649aeb0
commit
fca07369ab
@ -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
|
||||
|
||||
@ -72,10 +72,12 @@ class FormulaInstaller
|
||||
end
|
||||
|
||||
def caveats
|
||||
if f.caveats
|
||||
the_caveats = (f.caveats || "").strip
|
||||
unless the_caveats.empty?
|
||||
ohai "Caveats", f.caveats
|
||||
@show_summary_heading = true
|
||||
end
|
||||
|
||||
if f.keg_only?
|
||||
ohai 'Caveats', f.keg_only_text
|
||||
@show_summary_heading = true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user