@@ -73,6 +73,11 @@ export class Katacoda extends Runner {
7373 this . createFolder ( path . join ( this . outputPathTutorial , "assets" , "setup" ) , true ) ;
7474 this . writeSetupFile ( path . join ( this . outputPathTutorial , "assets" , "setup" , "setup.txt" ) )
7575
76+ let imageDirectory = path . join ( this . playbookPath , "images" ) ;
77+ if ( fs . existsSync ( imageDirectory ) ) {
78+ this . assetManager . registerDirectory ( imageDirectory , "" , "" , true ) ;
79+ }
80+
7681 // copy all assets from temp/setup in assets folder
7782 this . assetManager . registerDirectory ( path . join ( this . tempPathTutorial , "setup" ) , "setup" , "/root/setup" , true ) ;
7883 this . assetManager . copyAssets ( ) ;
@@ -355,7 +360,6 @@ export class Katacoda extends Runner {
355360 fs . appendFileSync ( tempFile , fs . readFileSync ( path . join ( this . playbookPath , param . file ) , "utf-8" ) ) ;
356361 } else if ( param . image ) {
357362 let image = path . join ( this . playbookPath , param . image ) ;
358- this . assetManager . registerFile ( image , path . basename ( image ) , "" , true ) ;
359363 fs . appendFileSync ( tempFile , " + ")" ) ;
360364 }
361365 fs . appendFileSync ( tempFile , "\n\n" ) ;
0 commit comments