Files

12 lines
448 B
Bash
Executable File

#!/usr/bin/env bash
# CHECK -- albums->photos extract (Extract lane, 2026-10-31).
# Re-fetches both JSONPlaceholder endpoints, re-derives the per-album table, and
# compares the committed CSV + JSON against the fresh extraction. Exits 0 only
# when the committed artifacts match. Exit code IS the verdict.
set -u
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
cd "$DIR/../.." || exit 1
python3 wizard-work/ledger/verify_albums_photo_counts.py