From 1c1b7ed6833b378c84284011d60bd9310fdf4ebf Mon Sep 17 00:00:00 2001
From: Adam Vandenberg <flangy@gmail.com>
Date: Sun, 30 Jun 2013 14:36:12 -0700
Subject: [PATCH] Fix appending .rb to local formulae names

Closes Homebrew/homebrew#20926.
---
 Library/Homebrew/formulary.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index fb633d6617..1f04ef3dde 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
-- 
GitLab