Skip to content

Commit 48340c3

Browse files
Merge pull request devonfw-tutorials#162 from GuentherJulian/fix/katacodaStepCount
fix for katacoda stepcount
2 parents 2bc1e0c + 4e37af1 commit 48340c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

runners/katacoda/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class Katacoda extends Runner {
1515
private outputPathTutorial: string;
1616
private tempPath: string;
1717
private tempPathTutorial: string;
18-
private stepsCount = 1;
18+
private stepsCount = 0;
1919
private steps: KatacodaStep[] = [];
2020
private setupScripts: KatacodaSetupScript[] = [];
2121
private assetManager: KatacodaAssetManager;
@@ -122,6 +122,7 @@ export class Katacoda extends Runner {
122122
//update working directory
123123
this.setVariable(this.workspaceDirectory, path.join("/root", "devonfw", "workspaces", "main"));
124124
this.setVariable(this.useDevonCommand, true);
125+
this.getStepsCount(runCommand);
125126

126127
fs.appendFileSync(path.join(this.getRunnerDirectory(),"templates","scripts", "intro_foreground.sh"), "\n. ~/.bashrc\nexport NG_CLI_ANALYTICS=CI");
127128
fs.appendFileSync(path.join(this.getRunnerDirectory(),"templates","scripts", "intro_background.sh"), "\necho \'export NG_CLI_ANALYTICS=CI\' >> /root/.profile\n");

0 commit comments

Comments
 (0)