1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-04-24 02:30:36 +08:00

feat(lint): 新增工程化规范约束

This commit is contained in:
142vip.cn
2023-11-07 15:41:20 +08:00
parent b596a86713
commit 02c58eb672
14 changed files with 451 additions and 216 deletions

View File

@@ -32,11 +32,12 @@ exports.execShell = async commands => {
for (let index = 0; index < runCommands.length; index++) {
const command = runCommands[index]
const count = index + 1
console.log(`>>>command(${count}):\n${command} \n<<<command(${count})--start === \n`)
console.log(`step${count}:\n${command} \nstep${count}(start): === `)
// await syncExec(command)
const execResult = await exec(command)
console.log(`\n<<<command(${count})--ending === `)
// 打印输出结果
// console.log(execResult.stdout);
console.log(`step${count}(ending): === \n`)
// 指令异常不执行后续指令非0退出
if (execResult.code !== 0) {
exit(1)