Skip to content

Commit

Permalink
fix: multiple sources for docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
AVVS authored Oct 15, 2019
1 parent e2538aa commit b320677
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/cmds/test_cmds/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ exports.handler = (argv) => {
}

let dockerComposeFiles = withComposeFile(argv.docker_compose);

/**
* Generates dynamic docker-compose file based on the presets
*/
Expand All @@ -63,11 +64,11 @@ exports.handler = (argv) => {
}

if (argv.docker_compose_multi.length > 0) {
dockerComposeFiles = `-f ${argv.docker_compose_multi.join(' -f ')}`;
dockerComposeFiles += ` -f ${argv.docker_compose_multi.join(' -f ')}`;
}

// add link to compose file
argv.compose = ShellString(`"${compose}" ${dockerComposeFiles}`);
argv.compose = ShellString(`"${compose}" ${dockerComposeFiles.trim()}`);

function stopDocker(signal, code) {
const dockerCompose = argv.compose;
Expand Down

0 comments on commit b320677

Please sign in to comment.