From caaf3acde530b943a4d53de9c64275532b39b91b Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 29 Oct 2016 14:13:06 -0400 Subject: [PATCH] use path join --- lib/template_generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/template_generator.js b/lib/template_generator.js index f140b1041..3cee1ee77 100644 --- a/lib/template_generator.js +++ b/lib/template_generator.js @@ -14,7 +14,7 @@ var TemplateGenerator = function(templateName) { }; TemplateGenerator.prototype.generate = function(destinationFolder, name) { - var templatePath = path.join(__dirname + '/../' + this.templateName); + var templatePath = path.join(__dirname, '/../', this.templateName); wrench.copyDirSyncRecursive(templatePath, destinationFolder + name);