Merge pull request #1994 from MikeMcQuaid/prefix-opt

--prefix: use opt_prefix when available.
This commit is contained in:
Mike McQuaid 2017-02-13 08:32:54 +00:00 committed by GitHub
commit 75bdded6f2

View File

@ -11,7 +11,9 @@ module Homebrew
if ARGV.named.empty?
puts HOMEBREW_PREFIX
else
puts ARGV.resolved_formulae.map(&:installed_prefix)
puts ARGV.resolved_formulae.map { |f|
f.opt_prefix.exist? ? f.opt_prefix : f.installed_prefix
}
end
end
end