From e2c0297df5d1561391e7bfe5b532896a22c062bd Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Mon, 9 Jul 2018 16:30:27 +0300 Subject: [PATCH] fix extractZip --- lib/cmds/template_generator.js | 2 +- lib/utils/utils.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cmds/template_generator.js b/lib/cmds/template_generator.js index 43d6b1ec8..834ccd0ee 100644 --- a/lib/cmds/template_generator.js +++ b/lib/cmds/template_generator.js @@ -23,7 +23,7 @@ class TemplateGenerator { file.path = utils.joinPath(...fixed_path); return file; } - }).then(() => { + }, () => { self.installTemplate(fspath, name, true); }); }); diff --git a/lib/utils/utils.js b/lib/utils/utils.js index 62036d19c..6df708a9b 100644 --- a/lib/utils/utils.js +++ b/lib/utils/utils.js @@ -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(); }); }