mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-03 20:07:34 +01:00
rm console log
This commit is contained in:
parent
9799d2f33b
commit
a3346719a0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -70,8 +70,6 @@ function convert(code: string): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function v1APIBreak(): void {
|
export function v1APIBreak(): void {
|
||||||
console.log("Running v1 api migration");
|
|
||||||
|
|
||||||
interface IFileLine {
|
interface IFileLine {
|
||||||
file: string;
|
file: string;
|
||||||
line: number;
|
line: number;
|
||||||
@ -109,9 +107,7 @@ export function v1APIBreak(): void {
|
|||||||
const backups: Script[] = [];
|
const backups: Script[] = [];
|
||||||
for (const script of server.scripts) {
|
for (const script of server.scripts) {
|
||||||
if (!hasChanges(script.code)) continue;
|
if (!hasChanges(script.code)) continue;
|
||||||
console.log(script.filename);
|
|
||||||
const prefix = script.filename.includes("/") ? "/BACKUP_" : "BACKUP_";
|
const prefix = script.filename.includes("/") ? "/BACKUP_" : "BACKUP_";
|
||||||
console.log(prefix + script.filename);
|
|
||||||
backups.push(new Script(prefix + script.filename, script.code, script.server));
|
backups.push(new Script(prefix + script.filename, script.code, script.server));
|
||||||
script.code = convert(script.code);
|
script.code = convert(script.code);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user