mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
241c71fdde
https://github.com/milvus-io/milvus/issues/35209 --------- Signed-off-by: Yellow Shine <sammy.huang@zilliz.com>
15 lines
331 B
Bash
15 lines
331 B
Bash
|
|
# Function to check if a command exists
|
|
command_exists() {
|
|
command -v "$1" >/dev/null 2>&1
|
|
}
|
|
|
|
# Check if docker-compose exists
|
|
if command_exists docker-compose; then
|
|
echo "Using docker-compose"
|
|
DOCKER_COMPOSE_COMMAND="docker-compose"
|
|
else
|
|
echo "Using docker compose"
|
|
DOCKER_COMPOSE_COMMAND="docker compose"
|
|
fi
|