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
commit1c1b7ed6833b378c84284011d60bd9310fdf4ebf (patch)
tree018efb40a19703188c20c1991791472ee762f413 /Library
parent829675719b6e6bdeb01a71ddd79b2e69402bc09f (diff)
downloadbrew-1c1b7ed6833b378c84284011d60bd9310fdf4ebf.tar.bz2
Fix appending .rb to local formulae names
Closes Homebrew/homebrew#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