allow installation of formulae from the current folder
Closes Homebrew/homebrew#19177.
This commit is contained in:
parent
9fdfdc5680
commit
5db5740cc2
@ -166,8 +166,9 @@ class Formulary
|
||||
elsif name_or_path.include? "/"
|
||||
# If name was a path or mapped to a cached formula
|
||||
f = FromPathLoader.new(name_or_path)
|
||||
elsif name_or_path =~ /\.rb$/
|
||||
f = FromPathLoader.new("./#{name_or_path}")
|
||||
else
|
||||
# For names, map to the path and then require
|
||||
f = StandardLoader.new(name_or_path)
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user