Skip to content

Commit

Permalink
cli- docker-compose - swap of installation packages
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravsaini04 committed Jun 18, 2024
1 parent 58e0a47 commit 9c696c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spec-node/dockerCompose.ts
Original file line number Diff line number Diff line change
Expand Up @@ -716,16 +716,16 @@ export function dockerComposeCLIConfig(params: Omit<PartialExecParameters, 'cmd'
}
stdout = (await dockerComposeCLI({
...params,
cmd: dockerCLICmd,
}, 'compose', 'version', '--short')).stdout;
cmd: "docker-compose",
}, 'version', '--short')).stdout;
v2 = true;
}
const version = stdout.toString().trim();
params.output.write(`Docker Compose version: ${version}`);
return {
version,
cmd: v2 ? dockerCLICmd : dockerComposeCLICmd,
args: v2 ? ['compose'] : [],
cmd: v2 ? "docker-compose" : dockerComposeCLICmd,
args: v2 ? [] : ['compose'],
};
})());
};
Expand Down

0 comments on commit 9c696c5

Please sign in to comment.