mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 09:33:49 +01:00
Fix scp logs
Hostname was not being displayed correctly
This commit is contained in:
parent
573a714fc6
commit
396e71955e
@ -838,8 +838,10 @@ export const ns: InternalAPI<NSFull> = {
|
|||||||
}
|
}
|
||||||
// Overwrite script if it already exists
|
// Overwrite script if it already exists
|
||||||
const result = destServer.writeToContentFile(contentFilePath, sourceContentFile.content);
|
const result = destServer.writeToContentFile(contentFilePath, sourceContentFile.content);
|
||||||
helpers.log(ctx, () => `Copied file ${contentFilePath} from ${sourceServer} to ${destServer}`);
|
helpers.log(ctx, () => `Copied file ${contentFilePath} from ${sourceServer.hostname} to ${destServer.hostname}`);
|
||||||
if (result.overwritten) helpers.log(ctx, () => `Warning: ${contentFilePath} was overwritten on ${destServer}`);
|
if (result.overwritten) {
|
||||||
|
helpers.log(ctx, () => `Warning: ${contentFilePath} was overwritten on ${destServer.hostname}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- Literature Files ---
|
// --- Literature Files ---
|
||||||
|
Loading…
Reference in New Issue
Block a user