Fix appending .rb to local formulae names
Closes Homebrew/homebrew#20926.
This commit is contained in:
parent
829675719b
commit
1c1b7ed683
@ -97,7 +97,7 @@ class Formulary
|
||||
def initialize path
|
||||
# require allows filenames to drop the .rb extension, but everything else
|
||||
# in our codebase will require an exact and fullpath.
|
||||
path = "#{name}.rb" unless path =~ /\.rb$/
|
||||
path = "#{path}.rb" unless path =~ /\.rb$/
|
||||
|
||||
@path = Pathname.new(path)
|
||||
@name = @path.stem
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user