scp is defined as scp(files: string | string[], destination: string, source?: string): boolean in Bitburner v2.2.2 (Steam). This results in the script trying to copy files from target server to home.
|
if (ns.hasRootAccess(server)) { |
|
await ns.scp('targeted-grow.js', 'home', server); |
|
await ns.scp('targeted-weaken.js', 'home', server); |
|
host_servers.push(server); |
|
} |
|
if (ns.hasRootAccess(server)) { |
|
await ns.scp('targeted-hack.js', 'home', server); |
|
await ns.scp('targeted-grow.js', 'home', server); |
|
await ns.scp('targeted-weaken.js', 'home', server); |
|
host_servers.push(server); |
|
} |
scpis defined asscp(files: string | string[], destination: string, source?: string): booleanin Bitburner v2.2.2 (Steam). This results in the script trying to copy files from target server to home.Bitburner-Scripts/hack-manager.js
Lines 44 to 48 in fe62454
Bitburner-Scripts/hack-manager.js
Lines 124 to 129 in fe62454