fix extractZip

This commit is contained in:
Iuri Matias 2018-07-09 16:30:27 +03:00
parent 3f16806f37
commit 29c93da4cc
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ class TemplateGenerator {
file.path = utils.joinPath(...fixed_path);
return file;
}
}).then(() => {
}, () => {
self.installTemplate(fspath, name, true);
});
});

View File

@ -183,10 +183,10 @@ function extractTar(filename, packageDirectory, cb) {
);
}
function extractZip(filename, packageDirectory, cb) {
function extractZip(filename, packageDirectory, opts, cb) {
const decompress = require('decompress');
decompress(filename, packageDirectory).then((_files) => {
decompress(filename, packageDirectory, opts).then((_files) => {
cb();
});
}