installer: fix docker compose command determination (#307)
This commit is contained in:
parent
d790ca04d6
commit
1bcddf1944
@ -795,7 +795,7 @@ clean_all() {
|
||||
|
||||
select_version() {
|
||||
DOCKER_COMPOSE_COMMAND=""
|
||||
if command -v docker compose >/dev/null 2>&1; then
|
||||
if docker compose version >/dev/null 2>&1; then
|
||||
DOCKER_COMPOSE_COMMAND="docker compose"
|
||||
elif command -v docker-compose >/dev/null 2>&1; then
|
||||
DOCKER_COMPOSE_COMMAND="docker-compose"
|
||||
|
@ -793,7 +793,7 @@ clean_all() {
|
||||
|
||||
select_version() {
|
||||
DOCKER_COMPOSE_COMMAND=""
|
||||
if command -v docker compose >/dev/null 2>&1; then
|
||||
if docker compose version >/dev/null 2>&1; then
|
||||
DOCKER_COMPOSE_COMMAND="docker compose"
|
||||
elif command -v docker-compose >/dev/null 2>&1; then
|
||||
DOCKER_COMPOSE_COMMAND="docker-compose"
|
||||
|
Loading…
Reference in New Issue
Block a user