Skip to content

Commit 2b498ee

Browse files
Merge pull request #144 from MarcelDiessner/fix/stepCount
Fixed condition of pushStep
2 parents 1de19f4 + 9fe3c6c commit 2b498ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

runners/katacoda/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ export class Katacoda extends Runner {
115115
"name": "Restore Devonfw IDE",
116116
"script": "restoreDevonfwIde.sh"
117117
});
118-
119118
//update working directory
120119
this.setVariable(this.workspaceDirectory, path.join("/root", "devonfw", "workspaces", "main"));
121120
this.setVariable(this.useDevonCommand, true);
@@ -379,7 +378,7 @@ export class Katacoda extends Runner {
379378
}
380379

381380
private pushStep(runCommand: RunCommand, title: string, text: string) {
382-
if (this.steps.length == this.stepsCount - 1) {
381+
if (runCommand.stepIndex == this.stepsCount - 1 && runCommand.lineIndex == 0) {
383382
let stepTitle = runCommand.stepTitle ? runCommand.stepTitle : title;
384383
this.steps.push({
385384
"title": stepTitle,

0 commit comments

Comments
 (0)