mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
Fix broken run command
This commit is contained in:
parent
be4b0267a6
commit
3106c03b5b
@ -14,7 +14,6 @@ export function run(args: (string | number | boolean)[], server: BaseServer): vo
|
|||||||
const path = Terminal.getFilepath(String(arg));
|
const path = Terminal.getFilepath(String(arg));
|
||||||
if (!path) return Terminal.error(`${args[0]} is not a valid filepath.`);
|
if (!path) return Terminal.error(`${args[0]} is not a valid filepath.`);
|
||||||
if (hasScriptExtension(path)) {
|
if (hasScriptExtension(path)) {
|
||||||
args.shift();
|
|
||||||
return runScript(path, args, server);
|
return runScript(path, args, server);
|
||||||
} else if (hasContractExtension(path)) {
|
} else if (hasContractExtension(path)) {
|
||||||
Terminal.runContract(path);
|
Terminal.runContract(path);
|
||||||
|
Loading…
Reference in New Issue
Block a user