Formulary: use Tap#alias_dir
This commit is contained in:
parent
871ec75524
commit
b810c034b7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user