milvus/build/util.sh
yellow-shine 241c71fdde
enhance: use docker compose instead of docker-compose (#35208)
https://github.com/milvus-io/milvus/issues/35209

---------

Signed-off-by: Yellow Shine <sammy.huang@zilliz.com>
2024-08-02 19:32:32 +08:00

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