Use Formula#installed_prefix for brew --prefix formula

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Dave Lee 2011-03-27 15:14:48 -06:00 committed by Adam Vandenberg
parent 7c4289d446
commit 30a4161c83

View File

@ -3,7 +3,7 @@ module Homebrew extend self
if ARGV.named.empty?
puts HOMEBREW_PREFIX
else
puts ARGV.formulae.map{ |f| f.prefix }
puts ARGV.formulae.map{ |f| f.installed_prefix }
end
end
end