mirror of https://github.com/embarklabs/embark.git
fix extractZip
This commit is contained in:
parent
7929abcdfd
commit
e2c0297df5
|
@ -23,7 +23,7 @@ class TemplateGenerator {
|
|||
file.path = utils.joinPath(...fixed_path);
|
||||
return file;
|
||||
}
|
||||
}).then(() => {
|
||||
}, () => {
|
||||
self.installTemplate(fspath, name, true);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -173,10 +173,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();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue