aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/create.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb
index d69ec2aba..d92dc0b00 100644
--- a/Library/Homebrew/cmd/create.rb
+++ b/Library/Homebrew/cmd/create.rb
@@ -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