Skip to content

Commit b320677

Browse files
authoredOct 15, 2019
fix: multiple sources for docker-compose
1 parent e2538aa commit b320677

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎bin/cmds/test_cmds/compose.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ exports.handler = (argv) => {
4848
}
4949

5050
let dockerComposeFiles = withComposeFile(argv.docker_compose);
51+
5152
/**
5253
* Generates dynamic docker-compose file based on the presets
5354
*/
@@ -63,11 +64,11 @@ exports.handler = (argv) => {
6364
}
6465

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

6970
// add link to compose file
70-
argv.compose = ShellString(`"${compose}" ${dockerComposeFiles}`);
71+
argv.compose = ShellString(`"${compose}" ${dockerComposeFiles.trim()}`);
7172

7273
function stopDocker(signal, code) {
7374
const dockerCompose = argv.compose;

0 commit comments

Comments
 (0)