We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4423f17 commit 5682a5dCopy full SHA for 5682a5d
docker-compose.sh
@@ -28,9 +28,9 @@ export BUILDKIT_PROGRESS=plain
28
export PROGRESS_NO_TRUNC=1
29
30
# Check if docker compose command is available
31
-if [ -x "`command -v docker-compose &> /dev/null`" ]; then
32
- DOCKER_COMPOSE=docker-compose
33
-elif [ -x "`command -v docker compose &> /dev/null`" ]; then
+if [ -x "$(command -v docker-compose)" ]; then
+ DOCKER_COMPOSE="docker-compose"
+elif $(docker compose &>/dev/null) && [ $? -eq 0 ]; then
34
DOCKER_COMPOSE="docker compose"
35
else
36
echo "Docker Compose not installed, install it and re-run the script"
0 commit comments