Skip to content

Commit

Permalink
Tab#for_formula: using Formula#installed_prefix
Browse files Browse the repository at this point in the history
Closes Homebrew#529.

Signed-off-by: Xu Cheng <xucheng@me.com>
  • Loading branch information
xu-cheng committed Jul 16, 2016
1 parent 7e14ec0 commit f49233c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/tab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def self.for_formula(f)
paths << dirs.first
end

paths << f.prefix
paths << f.installed_prefix

path = paths.map { |pn| pn.join(FILENAME) }.find(&:file?)

Expand Down

0 comments on commit f49233c

Please sign in to comment.