mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 17:23:00 +02:00
Prevent errors thrown from terminal (#443)
At least from getFilepath function
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user