更新部署服务

This commit is contained in:
aixianling
2022-05-26 18:16:12 +08:00
parent 06a9b238e7
commit 81be840647

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)