diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formulary.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb index fb633d661..1f04ef3dd 100644 --- a/Library/Homebrew/formulary.rb +++ b/Library/Homebrew/formulary.rb @@ -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 |
