Skip to content

Commit ca79391

Browse files
Update deploy-compose.sh
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent d1c25eb commit ca79391

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

deploy-compose.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ echo ""
3333
COMPOSE_VERSION=$(docker compose version --short 2>/dev/null || echo "unknown")
3434
echo "📋 Docker Compose version: $COMPOSE_VERSION"
3535

36-
if [[ "$COMPOSE_VERSION" < "2.20" ]]; then
37-
echo "⚠️ Docker Compose v2.20+ recommended for --wait flag"
36+
REQUIRED_COMPOSE_VERSION="2.20"
37+
if [ "$(printf '%s\n' "$REQUIRED_COMPOSE_VERSION" "$COMPOSE_VERSION" | sort -V | head -n1)" != "$REQUIRED_COMPOSE_VERSION" ] && [ "$COMPOSE_VERSION" != "unknown" ]; then
38+
echo "⚠️ Docker Compose v${REQUIRED_COMPOSE_VERSION}+ recommended for --wait flag"
3839
fi
3940
echo ""
4041

0 commit comments

Comments
 (0)