Skip to content

Commit

Permalink
Fixes detection of version 2 of docker-compose (#17062)
Browse files Browse the repository at this point in the history
Docker compose 2 added `v` in front of the version :(
  • Loading branch information
potiuk authored Jul 17, 2021
1 parent 675db5c commit 16564ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions breeze
Original file line number Diff line number Diff line change
Expand Up @@ -591,9 +591,9 @@ function breeze::prepare_command_file() {
cat <<EOF >"${file}"
#!/usr/bin/env bash
docker_compose_version=\$(docker-compose --version)
if [[ \${docker_compose_version} =~ .*version\ 2.* ]]; then
if [[ \${docker_compose_version} =~ .*version\ v2.* ]]; then
echo
echo "${COLOR_RED}Docker Compose Beta version 2has bug that prevents breeze from running.${COLOR_RESET}"
echo "${COLOR_RED}Docker Compose Beta version v2 has a bug that prevents breeze from running.${COLOR_RESET}"
echo "${COLOR_RED}You have: \${docker_compose_version}.${COLOR_RESET}"
echo
echo "${COLOR_YELLOW}Please switch to stable version via Docker Desktop -> Experimental or by running:${COLOR_RESET}"
Expand Down

0 comments on commit 16564ca

Please sign in to comment.