From 98f65970d11ebdbc23feaee6b1879d3bddaadaee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=AF=E8=BE=BE=E9=B8=AD?= Date: Wed, 26 Mar 2025 09:14:35 +0800 Subject: [PATCH] . --- main.js | 2 +- qlCreate.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index b56f1ce..5e3ad38 100644 --- a/main.js +++ b/main.js @@ -30,7 +30,6 @@ if (length>2) { let main = new psyDuck.Main() await main.init(params) } catch (e) { - // console.log(e) if (e == 'End') { console.log("End") } @@ -60,6 +59,7 @@ if (length>2) { console.log("没有可执行的脚本") } } + process.exit() } } })().catch((e) => { diff --git a/qlCreate.js b/qlCreate.js index eccb6ba..933a18a 100644 --- a/qlCreate.js +++ b/qlCreate.js @@ -256,6 +256,7 @@ import {fileURLToPath, pathToFileURL} from 'url'; }else{ console.log(e) } + process.exit() })` fs.writeFile(`${abspath}/${filename}.js`, code, function(err, data) { if (err) { @@ -320,7 +321,7 @@ import {fileURLToPath, pathToFileURL} from 'url'; }else{ console.log(e) } - + process.exit() })` fs.writeFile(`${abspath}/${script}`, code, function(err, data) { if (err) {