From b320677ff484ae3a5bf6949b1c4aacf03babaeff Mon Sep 17 00:00:00 2001 From: Vitaly Aminev Date: Mon, 14 Oct 2019 23:30:12 -0700 Subject: [PATCH] fix: multiple sources for docker-compose --- bin/cmds/test_cmds/compose.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/cmds/test_cmds/compose.js b/bin/cmds/test_cmds/compose.js index 33c06f6..03a2e67 100644 --- a/bin/cmds/test_cmds/compose.js +++ b/bin/cmds/test_cmds/compose.js @@ -48,6 +48,7 @@ exports.handler = (argv) => { } let dockerComposeFiles = withComposeFile(argv.docker_compose); + /** * Generates dynamic docker-compose file based on the presets */ @@ -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;