From 5a09e51e849be0e321a0803966151bb0dc99a407 Mon Sep 17 00:00:00 2001 From: zkronos73 Date: Thu, 24 Feb 2022 13:20:18 +0100 Subject: [PATCH] fix bug on exit code --- src/clprocessor.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/clprocessor.js b/src/clprocessor.js index 01fe8bc..9875d5f 100644 --- a/src/clprocessor.js +++ b/src/clprocessor.js @@ -58,6 +58,7 @@ export default async function clProcessor(commands) { for (let i=0; i0) console.log("Invalid number of parameters"); helpCmd(cmd); return 99; } - return; + return res; } } if (cl.length>0) console.log("Invalid command");