更新部署服务
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user