Skip to content
Snippets Groups Projects
Commit 93502785 authored by Misty De Meo's avatar Misty De Meo
Browse files

--prefix: don't use opt prefix if it doesn't exist

parent 03293077
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ module Homebrew extend self
if ARGV.named.empty?
puts HOMEBREW_PREFIX
else
puts ARGV.formulae.map{ |f| "#{HOMEBREW_PREFIX}/opt/#{f}" }
puts ARGV.formulae.map{ |f| f.opt_prefix.exist? ? f.opt_prefix : f.installed_prefix }
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment