Skip to content

Commit

Permalink
Fix getting host port number for connection to docker-compose with mu…
Browse files Browse the repository at this point in the history
…ltiple services (#942)
  • Loading branch information
isc-bsaviano authored May 6, 2022
1 parent 367789f commit 08f6775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export async function portFromDockerCompose(): Promise<{ port: number; docker: b
if (error) {
reject(error.message);
}
if (!stdout.replace("\r", "").split("\n").includes(service)) {
if (!stdout.replaceAll("\r", "").split("\n").includes(service)) {
reject(`Service '${service}' not found in '${file}', or not running.`);
}

Expand Down

0 comments on commit 08f6775

Please sign in to comment.