chain gateway build fix
Some checks failed
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/billing_fees Pipeline failed
ci/woodpecker/push/fx/1 Pipeline failed
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/fx/2 Pipeline failed

This commit is contained in:
Stephan D
2025-11-11 09:15:23 +01:00
parent d723047dd4
commit 881ebaff5f

View File

@@ -4,8 +4,14 @@ set -eu
echo "[fx-pipeline] rewriting .env.version" >&2 echo "[fx-pipeline] rewriting .env.version" >&2
if [ -f ./.env.version ]; then if [ -f ./.env.version ]; then
# shellcheck disable=SC1091 tmp_env="$(mktemp .env.version.sanitized.XXXXXX)"
. ./.env.version || true if grep -E '^[[:alpha:]_][[:alnum:]_]*=' ./.env.version >"$tmp_env" 2>/dev/null; then
# shellcheck disable=SC1091
. "$tmp_env" || true
else
echo "[fx-pipeline] ignoring legacy .env.version contents" >&2
fi
rm -f "$tmp_env"
fi fi
if [ -n "${WOODPECKER_COMMIT:-}" ]; then if [ -n "${WOODPECKER_COMMIT:-}" ]; then