diff --git a/src/rest/autodeploy/getZip.js b/src/rest/autodeploy/getZip.js index bbde7e1..941ceaf 100644 --- a/src/rest/autodeploy/getZip.js +++ b/src/rest/autodeploy/getZip.js @@ -18,10 +18,7 @@ module.exports = { if (!!info.type) { let {type, zipPath, target, name, nodeVersion} = info, updateCMD = `/root/node-service/update.sh ${name} ${zipPath}`, - buildCMD = `/root/node-service/build.sh ${type} ${zipPath} ${target}` - if (nodeVersion) { - buildCMD += ` ${nodeVersion}` - } + buildCMD = `/root/node-service/build.sh ${type} ${zipPath} ${target} ${nodeVersion || '16.14.0'}` return execute(updateCMD).then(() => execute(buildCMD)) } else { return execute(`${info.updateShell}`).then(() => execute(`${info.libShell}`))