mirror of
https://github.com/okxlin/appstore.git
synced 2026-09-23 08:01:00 +00:00
Keep the PR shell compatibility improvement, but support both Docker Compose v2 and docker-compose while returning a failure when no Compose command is available. Refs: #4371
16 lines
379 B
Bash
Executable File
16 lines
379 B
Bash
Executable File
#!/usr/bin/env bash
|
|
if [ -n "${BASH_VERSION:-}" ]; then
|
|
set -euo pipefail
|
|
else
|
|
set -eu
|
|
fi
|
|
|
|
if docker compose version >/dev/null 2>&1; then
|
|
docker compose down --volumes
|
|
elif command -v docker-compose >/dev/null 2>&1; then
|
|
docker-compose down --volumes
|
|
else
|
|
echo "[ErisPulse] Docker Compose is not available. Manual cleanup may be required." >&2
|
|
exit 1
|
|
fi
|