clawchain/scripts/check-release-ready-inputs.sh
caelum0x 22a55b5f87 fix: make all 162 scripts executable + add P21 to execution board
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 18:00:00 +03:00

32 lines
932 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT_DIR"
MANIFEST="${MANIFEST:-}"
HOST="${HOST:-}"
if [[ -z "$MANIFEST" ]]; then
echo "ERROR: MANIFEST is required for release-ready-gate." >&2
echo "Usage: make release-ready-gate MANIFEST=<manifest-url-or-path> HOST=<public-host>" >&2
exit 1
fi
if [[ -z "$HOST" ]]; then
echo "ERROR: HOST is required for release-ready-gate." >&2
echo "Usage: make release-ready-gate MANIFEST=<manifest-url-or-path> HOST=<public-host>" >&2
exit 1
fi
if [[ ! -f testnet/public.env ]]; then
echo "ERROR: missing testnet/public.env required for public reproducibility checks." >&2
echo "Run: make testnet-public-env" >&2
echo "Then edit testnet/public.env with real endpoint values." >&2
exit 1
fi
bash ./testnet/validate-public-env.sh ./testnet/public.env >/dev/null
echo "release-ready input preflight passed."