#!/bin/bash # Run the certificate check on every example that has a CERTIFICATE.json. set -euo pipefail cd "$(dirname "$0")/.." found=0 for dir in examples/*/; do if [ -f "$dir/CERTIFICATE.json" ]; then echo "== $dir" python3 checks/verify.py "$dir" found=1 fi done if [ "$found" -eq 0 ]; then echo "No example certificates found." >&2 exit 1 fi