File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ if (yamlObject.include) {
127127 index = readlineSync . keyInSelect ( yamlObject . stages , `Select a stage to execute ?` , {
128128 cancel : `${ CBRIGHT } None${ CRESET } - (Escape)`
129129 } )
130+ optCMD = yamlObject . stages [ index ]
130131 } else {
131132 index = yamlObject . stages . indexOf ( optCMD )
132133 }
@@ -207,7 +208,7 @@ if (yamlObject.include) {
207208 let dockerComposePath = `${ projectName } /docker-compose.${ executedStage } .yml`
208209 fs . writeFileSync ( dockerComposePath , YAML . stringify ( dockerComposeContent ) )
209210 console . log ( `Created ${ projectName } docker-compose for stage '${ optCMD } ' cached to '${ projectName } ' volume` )
210- fs . writeFileSync ( `pipeline.bash ` , [
211+ fs . writeFileSync ( `pipeline.sh ` , [
211212 '#!/bin/bash' ,
212213 `cd ${ projectName } ` ,
213214 `docker volume rm ${ projectName . replace ( / \. / g, '' ) } _shared > /dev/null` ,
You can’t perform that action at this time.
0 commit comments