From 1bcddf19449de6332304876d0a1012ee15f9f65f Mon Sep 17 00:00:00 2001 From: Applexad <35923940+applexad@users.noreply.github.com> Date: Wed, 6 Dec 2023 22:42:22 +0800 Subject: [PATCH] installer: fix docker compose command determination (#307) --- script/install.sh | 2 +- script/install_en.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/install.sh b/script/install.sh index d1cf8e9..c4b5e06 100755 --- a/script/install.sh +++ b/script/install.sh @@ -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" diff --git a/script/install_en.sh b/script/install_en.sh index b675703..3b6874f 100755 --- a/script/install_en.sh +++ b/script/install_en.sh @@ -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"