| 1 | #!/usr/bin/env bash |
| 2 | set -euo pipefail |
| 3 | test "$#" -eq 1 || { echo 'usage: check-release-public-access.sh VERSION' >&2; exit 2; } |
| 4 | script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" |
| 5 | manifest="$(mktemp)" |
| 6 | trap 'rm -f -- "$manifest"' EXIT |
| 7 | # The current Stable version normally predates a new candidate. This gate checks |
| 8 | # accessibility and JSON, not ownership of a version that is not published yet. |
| 9 | bash "$script_dir/fetch-stable-release-manifest.sh" "$1" "$manifest" |
| 10 | echo 'public Stable manifest preflight: PASS' |
| 11 |