Formulary: use Tap#alias_dir

This commit is contained in:
Xu Cheng 2015-12-06 21:44:18 +08:00
parent 871ec75524
commit b810c034b7

View File

@ -150,7 +150,7 @@ class Formulary
path = @tap.formula_files.detect { |file| file.basename(".rb").to_s == name }
unless path
if (possible_alias = @tap.path/"Aliases/#{name}").file?
if (possible_alias = @tap.alias_dir/name).file?
path = possible_alias.resolved_path
name = path.basename(".rb").to_s
else