From f48d8924da2f51ee2a4e3acd14a4402dc0a6a7c6 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 10 Jun 2022 12:08:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=93=E5=8C=85=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rest/autodeploy/download.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest/autodeploy/download.js b/src/rest/autodeploy/download.js index 04fc36b..db0c384 100644 --- a/src/rest/autodeploy/download.js +++ b/src/rest/autodeploy/download.js @@ -14,7 +14,7 @@ module.exports = { fse.pathExists(path, (err, exists) => { console.log(`${path}=========>${exists}`) if (exists) { - execute(`cd /root/node-service/zips`).then(() => execute(`zip -r ${info.id}.zip ${path}`)).then(() => { + execute(`cd /root/node-service/zips&&zip -r ${info.id}.zip ${path}`).then(() => { console.log('压缩完成!') setTimeout(() => { response.download(zipPath)