#!/bin/sh
# Verify this Setup Kit.
#
#   ./verify                       full check, including the signature
#   ./verify --no-signature        contents only (exits 3, not 0)
#   ./verify --archive ../kit.zip  also check the downloaded archive
#
# Convenience only. This wrapper and the verifier it runs are both declared
# in manifest.json, and manifest.json is what the Sigstore signature covers
# — see "Verifying this kit" in instructions/SETUP.md for the path that
# does not require trusting either of them.
set -eu
here=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
exec node "$here/metergrade-verify.mjs" "$here" "$@"
