Prevent errors thrown from terminal (#443)

At least from getFilepath function
This commit is contained in:
Snarling
2023-03-23 12:01:58 -04:00
committed by GitHub
parent 07b18edb5c
commit 6290ce562a
13 changed files with 44 additions and 77 deletions
+1
View File
@@ -18,6 +18,7 @@ export function runScript(commandArgs: (string | number | boolean)[], server: Ba
}
const scriptName = Terminal.getFilepath(commandArgs[0] + "");
if (!scriptName) return Terminal.error(`Invalid filename: ${commandArgs[0]}`);
const runArgs = { "--tail": Boolean, "-t": Number };
const flags = libarg(runArgs, {