mirror of https://github.com/embarklabs/embark.git
use path join
This commit is contained in:
parent
41273a4517
commit
caaf3acde5
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue