Skip to content

Commit

Permalink
Improve docker compose test.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Apr 3, 2024
1 parent 4423f17 commit 5682a5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export BUILDKIT_PROGRESS=plain
export PROGRESS_NO_TRUNC=1

# Check if docker compose command is available
if [ -x "`command -v docker-compose &> /dev/null`" ]; then
DOCKER_COMPOSE=docker-compose
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
DOCKER_COMPOSE="docker compose"
else
echo "Docker Compose not installed, install it and re-run the script"
Expand Down

0 comments on commit 5682a5d

Please sign in to comment.