mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +01:00
dont make new copies when injecting via localhost
This commit is contained in:
parent
b2b682fa04
commit
ea0be338e1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -426,8 +426,10 @@ function initWebserver(): void {
|
|||||||
if (isScriptFilename(filename)) {
|
if (isScriptFilename(filename)) {
|
||||||
//If the current script already exists on the server, overwrite it
|
//If the current script already exists on the server, overwrite it
|
||||||
for (let i = 0; i < home.scripts.length; i++) {
|
for (let i = 0; i < home.scripts.length; i++) {
|
||||||
|
console.log(`${filename} ${home.scripts[i].filename}`);
|
||||||
if (filename == home.scripts[i].filename) {
|
if (filename == home.scripts[i].filename) {
|
||||||
home.scripts[i].saveScript(filename, code, "home", home.scripts);
|
home.scripts[i].saveScript(filename, code, "home", home.scripts);
|
||||||
|
return "written";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user