chore(run.sh): prefer docker compose plugin over docker-compose

This commit is contained in:
Ivan Dyachkov 2023-03-09 12:07:48 +01:00 committed by Thales Macedo Garitezi
parent 2fe341d152
commit a59827cc6a
1 changed files with 7 additions and 2 deletions

View File

@ -21,11 +21,16 @@ help() {
echo " otherwise it runs the entire app's CT" echo " otherwise it runs the entire app's CT"
} }
if command -v docker-compose; then set +e
if docker compose version; then
DC='docker compose'
elif command -v docker-compose; then
DC='docker-compose' DC='docker-compose'
else else
DC='docker compose' echo 'Neither "docker compose" or "docker-compose" are available, stop.'
exit 1
fi fi
set -e
WHICH_APP='novalue' WHICH_APP='novalue'
CONSOLE='no' CONSOLE='no'