aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-06-30 14:36:12 -0700
committerAdam Vandenberg2013-06-30 14:36:12 -0700
commitf6fb71ffcb594930e9c94703406c612d42b0be2f (patch)
treecefb36927a57ba238baaac4ade5505eb44502f48 /Library
parente200739b1cbda8a9a8598156a665152b593ad14d (diff)
downloadhomebrew-f6fb71ffcb594930e9c94703406c612d42b0be2f.tar.bz2
Fix appending .rb to local formulae names
Closes #20926.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formulary.rb2
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