From 4554c6ef894dd77fdbbe806382c38c021f302a3f Mon Sep 17 00:00:00 2001 From: "martin.legrand" Date: Sat, 13 Sep 2025 15:00:57 +0200 Subject: [PATCH] fix command_exists issue in .sh --- start_services.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start_services.sh b/start_services.sh index ce8eb04..db1486b 100755 --- a/start_services.sh +++ b/start_services.sh @@ -21,7 +21,7 @@ max_size_bytes=$((2 * 1024 * 1024 * 1024 * 10)) echo "Mounting $WORK_DIR ($dir_size_bytes bytes) to docker." if [ "$dir_size_bytes" -gt "$max_size_bytes" ]; then - echo "Error: WORK_DIR ($WORK_DIR) contains more than 2GB of data ($(du -sh "$WORK_DIR" 2>/dev/null | awk '{print $1}'))." + echo "Error: WORK_DIR ($WORK_DIR) contains more than 20GB of data ($(du -sh "$WORK_DIR" 2>/dev/null | awk '{print $1}'))." exit 1 fi @@ -71,7 +71,7 @@ if ! command_exists docker-compose && ! docker compose version >/dev/null 2>&1; exit 1 fi -if command_exists docker compose; then +if command_exists "docker compose"; then COMPOSE_CMD="docker compose" else COMPOSE_CMD="docker-compose"