--prefix: use ARGV.resolved_formulae

This commit is contained in:
Xu Cheng 2015-05-17 20:19:07 +08:00
parent 75eac94b57
commit 5ca7035e32

View File

@ -3,7 +3,7 @@ module Homebrew
if ARGV.named.empty? if ARGV.named.empty?
puts HOMEBREW_PREFIX puts HOMEBREW_PREFIX
else else
puts ARGV.formulae.map{ |f| f.opt_prefix.exist? ? f.opt_prefix : f.installed_prefix } puts ARGV.resolved_formulae.map{ |f| f.opt_prefix.exist? ? f.opt_prefix : f.installed_prefix }
end end
end end
end end