优化脚本
This commit is contained in:
@@ -18,8 +18,8 @@ module.exports = {
|
||||
})
|
||||
Promise.resolve(() => {
|
||||
if (!!info.type) {
|
||||
let {type, zipPath, target} = info
|
||||
return execute(`/root/node-service/build.sh ${type} ${zipPath} ${target}`)
|
||||
let {type, zipPath, target, name} = info
|
||||
return execute(`/root/node-service/update.sh ${name} ${zipPath}`).then(() => execute(`/root/node-service/build.sh ${type} ${zipPath} ${target}`))
|
||||
} else {
|
||||
return execute(`${info.updateShell}`).then(() => execute(`${info.libShell}`))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user