From 29c93da4cc7de5ba25565bf5147a6545327223e1 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 354ee87c0..882358634 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 80ddac2b4..0f09c7052 100644 --- a/lib/utils/utils.js +++ b/lib/utils/utils.js @@ -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(); }); }