mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
Fix broken run command
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user