更新部署服务

This commit is contained in:
aixianling
2022-05-26 18:17:25 +08:00
parent 81be840647
commit c45f0b6faf

View File

@@ -4,8 +4,8 @@ module.exports = info => {
return new Promise((resolve, reject) => {
fse.emptyDir(`zips/${info.id}`, err => {
if (!err) {
execute(`.${info.updateShell}`)
.then(() => execute(`.${info.libShell}`))
execute(`${info.updateShell}`)
.then(() => execute(`${info.libShell}`))
.then(() => resolve())
.catch(errs => {
console.log(errs)