From b29bb809ef9fda5fe538ec11bdda9b16f949212a Mon Sep 17 00:00:00 2001 From: anupamme Date: Thu, 6 Aug 2026 05:26:26 +0000 Subject: [PATCH] fix: V-001 security vulnerability Automated security fix generated by OrbisAI Security --- index.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index ff5f30f..436fd92 100644 --- a/index.js +++ b/index.js @@ -71,11 +71,8 @@ const starter = async () => { console.error('未传入命令'); return; } - const params = argvs.slice(1); - - const child = spawn(cmd, params, {stdio: 'inherit'}); - - child.on('close', code => process.exit(code)); + console.error(`未知命令: ${cmd}`); + process.exit(1); /* child.stdout.on('data', data => { console.log(data.toString().blue);