优化脚本

This commit is contained in:
aixianling
2022-06-17 18:12:31 +08:00
parent 9c9e249f56
commit ce2503cad0

View File

@@ -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}`))
} }