caveats: tweak root_dir definition style.

This commit is contained in:
Mike McQuaid 2017-12-24 07:59:17 +00:00 committed by GitHub
parent 92e62ba583
commit cacefb2b99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,11 +86,7 @@ class Caveats
installed << "completions" if completion_installed
installed << "functions" if functions_installed
if f.keg_only?
root_dir = f.opt_prefix
else
root_dir = HOMEBREW_PREFIX
end
root_dir = f.keg_only? ? f.opt_prefix : HOMEBREW_PREFIX
case shell
when :bash