mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-24 02:03:01 +02:00
Copying a NetscriptJS script with scp now properly clears its 'module'.
This commit is contained in:
+2
-1
@@ -304,7 +304,7 @@ $(document).keyup(function(e) {
|
||||
})
|
||||
|
||||
//Implements a tab completion feature for terminal
|
||||
// command - Command (first arg only)
|
||||
// command - Terminal command except for the last incomplete argument
|
||||
// arg - Incomplete argument string that the function will try to complete, or will display
|
||||
// a series of possible options for
|
||||
// allPossibilities - Array of strings containing all possibilities that the
|
||||
@@ -1466,6 +1466,7 @@ let Terminal = {
|
||||
var oldScript = destServer.scripts[i];
|
||||
oldScript.code = sourceScript.code;
|
||||
oldScript.ramUsage = sourceScript.ramUsage;
|
||||
oldScript.module = "";
|
||||
post(scriptname + " overwriten on " + destServer.hostname);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user