Fixed bug with copy

This commit is contained in:
Zakary Timson 2022-05-02 12:21:56 -04:00
parent 6245ece342
commit 584077fe03

View File

@ -64,7 +64,8 @@ export async function main(ns) {
await ns.scp(args['file'], args['server']);
if(!args['quite']) await progressBar(ns, args['file']);
} else {
const files = copyWithDependencies(ns, args['file'], args['server']);
const files = await copyWithDependencies(ns, args['file'], args['server']);
console.log(files);
if(!args['quite']) {
for(let file of files) {
await progressBar(ns, file);