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