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)