mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-23 22:52:29 +01:00
Merge pull request #69 from danielyxie/tutorialbugfix
Fixed bug with tutorial after update to tail command
This commit is contained in:
commit
3877f5da1d
@ -551,12 +551,13 @@ var Terminal = {
|
|||||||
case iTutorialSteps.ActiveScriptsToTerminal:
|
case iTutorialSteps.ActiveScriptsToTerminal:
|
||||||
if (commandArray.length == 2 &&
|
if (commandArray.length == 2 &&
|
||||||
commandArray[0] == "tail" && commandArray[1] == "foodnstuff.script") {
|
commandArray[0] == "tail" && commandArray[1] == "foodnstuff.script") {
|
||||||
var currScripts = Player.getCurrentServer().scripts;
|
//Check that the script exists on this machine
|
||||||
for (var i = 0; i < currScripts.length; ++i) {
|
var runningScript = findRunningScript("foodnstuff.script", [], Player.getCurrentServer());
|
||||||
if ("foodnstuff.script" == currScripts[i].filename) {
|
if (runningScript == null) {
|
||||||
currScripts[i].displayLog();
|
post("Error: No such script exists");
|
||||||
}
|
return;
|
||||||
}
|
}
|
||||||
|
logBoxCreate(runningScript);
|
||||||
iTutorialNextStep();
|
iTutorialNextStep();
|
||||||
} else {post("Bad command. Please follow the tutorial");}
|
} else {post("Bad command. Please follow the tutorial");}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user