diff options
| author | Adam Vandenberg | 2013-06-30 14:36:12 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-06-30 14:36:12 -0700 |
| commit | f6fb71ffcb594930e9c94703406c612d42b0be2f (patch) | |
| tree | cefb36927a57ba238baaac4ade5505eb44502f48 /Library | |
| parent | e200739b1cbda8a9a8598156a665152b593ad14d (diff) | |
| download | homebrew-f6fb71ffcb594930e9c94703406c612d42b0be2f.tar.bz2 | |
Fix appending .rb to local formulae names
Closes #20926.
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 |
