mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-19 15:54:09 +02:00
synchronize scp and write
This commit is contained in:
@@ -839,7 +839,8 @@ const base: InternalAPI<NS> = {
|
||||
throw helpers.makeRuntimeErrorMsg(ctx, "No scripts to copy");
|
||||
}
|
||||
let res = true;
|
||||
scripts.map(function (script) {
|
||||
scripts.forEach(function (script) {
|
||||
//TODO: This array method still needs to be reworked because it is terribly inefficient.
|
||||
if (!NetscriptFunctions(ctx.workerScript).scp(script, destination, source)) {
|
||||
res = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user