Skip to content

Commit

Permalink
fix: wrap pathes for docker compose in quotes (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVolosnikov authored Jul 9, 2024
1 parent 17bf748 commit bba983b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const checkDockerInstallation = async () => {
};

const getComposeCommandBase = (dockerComposePath: string, projectDir?: string) => {
return `docker compose -f ${dockerComposePath} --project-directory ${projectDir ?? path.dirname(dockerComposePath)}`;
return `docker compose -f "${dockerComposePath}" --project-directory "${projectDir ?? path.dirname(dockerComposePath)}"`;
};
const createComposeCommand =
(action: string) => async (dockerComposePath: string, projectDir?: string, additionalArgs?: string[]) => {
Expand Down

0 comments on commit bba983b

Please sign in to comment.