Skip to content
Snippets Groups Projects
Commit dafe97b0 authored by Martin Kühl's avatar Martin Kühl Committed by Adam Vandenberg
Browse files

Fix formula paths for manually specified names.


When the name of a new formula can't be autodetected, it defaults to the empty
string. When it then gets read from user input later on, the new name is used
but the formula path, based on the name, stays empty.

This change sets the path after a new name was read.

Signed-off-by: default avatarAdam Vandenberg <flangy@gmail.com>
parent 8e0c96c4
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@ module Homebrew extend self
path = Pathname.new url
print "Formula name [#{path.stem}]: "
fc.name = __gets || path.stem
fc.path = Formula.path fc.name
end
unless ARGV.force?
......@@ -58,7 +59,7 @@ class FormulaCreator
attr :url
attr :md5
attr :name, true
attr :path
attr :path, true
attr :mode, true
def url= url
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment