Skip to content

Commit

Permalink
feat: Improve base.sh to have 'docker compose' as a fallback (mateuso…
Browse files Browse the repository at this point in the history
  • Loading branch information
vandaimer committed Apr 17, 2023
1 parent 90eee1e commit 8cb4de1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docker/base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ DOCKER_COMPOSE=""

if [ -x "$(command -v $DOCKER_COMPOSE_BIN)" ]; then
DOCKER_COMPOSE=$DOCKER_COMPOSE_BIN
elif [ -x "$(command -v $DOCKER_COMPOSE_FROM_DOCKER)" ]; then
DOCKER_COMPOSE=$DOCKER_COMPOSE_FROM_DOCKER
else
echo "Neither 'docker-compose' and 'docker compose' found. At least one of them are mandatory."
exit 1
DOCKER_COMPOSE=$DOCKER_COMPOSE_FROM_DOCKER
fi

0 comments on commit 8cb4de1

Please sign in to comment.