mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 03:48:37 +08:00
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
|