Skip to content
Snippets Groups Projects
Commit 1c1b7ed6 authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

Fix appending .rb to local formulae names

Closes Homebrew/homebrew#20926.
parent 82967571
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment