caveats: chomp keg_only reason

This commit is contained in:
Dominyk Tiller 2017-05-02 19:03:03 +01:00
parent 7a0e5d123c
commit c081b3d975
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -46,7 +46,7 @@ class Caveats
s = <<-EOS.undent
This formula is keg-only, which means it was not symlinked into #{HOMEBREW_PREFIX},
because #{f.keg_only_reason}.
because #{f.keg_only_reason.to_s.chomp}.
EOS
if f.bin.directory? || f.sbin.directory?
s << "\nIf you need to have this software first in your PATH run:\n"