Skip to content

Commit 87ef43f

Browse files
Merge pull request #292 from devonfw-tutorials/bugfix/katacodaExecuteCommand
wrong Index for args parameter in execute command
2 parents 9b2d0f1 + 021584d commit 87ef43f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runners/katacoda/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ export class Katacoda extends Runner {
423423
"path" : filepath,
424424
"terminalId" : terminal ? terminal.terminalId : 1,
425425
"interrupt" : terminal ? terminal.isRunning : false,
426-
"args": (runCommand.command.parameters.length > 2 && runCommand.command.parameters[2].args) ? runCommand.command.parameters[1].args.join(" ") : undefined
426+
"args": (runCommand.command.parameters.length > 2 && runCommand.command.parameters[2].args) ? runCommand.command.parameters[2].args.join(" ") : undefined
427427
}
428428

429429
this.pushStep(runCommand, "Executing the command "+ runCommand.command.parameters[1] , "step"+ runCommand.stepIndex + ".md");

0 commit comments

Comments
 (0)