All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 12s
13 lines
393 B
Bash
13 lines
393 B
Bash
#!/bin/bash
|
|
# Helper to detect and use the correct docker compose command
|
|
|
|
# Detect which compose command is available
|
|
if docker compose version &>/dev/null; then
|
|
docker_compose() { docker compose "$@"; }
|
|
elif command -v docker-compose &>/dev/null; then
|
|
docker_compose() { docker-compose "$@"; }
|
|
else
|
|
echo "Error: Neither 'docker compose' nor 'docker-compose' found"
|
|
exit 1
|
|
fi
|