From 3380d1a68e34e5fd4c5681d05df2b1eaa3a6e5bf Mon Sep 17 00:00:00 2001 From: "M. R" <2947595+m-roberts@users.noreply.github.com> Date: Fri, 14 Apr 2023 12:35:01 +0100 Subject: [PATCH] Prefer docker compose v2 --- compose-check.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compose-check.sh b/compose-check.sh index 80153f0..756f495 100755 --- a/compose-check.sh +++ b/compose-check.sh @@ -2,10 +2,10 @@ # Verifies that files passed in are valid for docker-compose set -e -if command -v docker-compose &> /dev/null ; then - COMPOSE=docker-compose -elif command -v docker &> /dev/null && docker help compose &> /dev/null; then +if command -v docker &> /dev/null && docker help compose &> /dev/null; then COMPOSE="docker compose" +elif command -v docker-compose &> /dev/null ; then + COMPOSE=docker-compose else echo "ERROR: Neither 'docker-compose' or 'docker compose' were found" exit 1