#!/usr/bin/env bash # Runs a preflight gate and fails unless it actually completed. # A tool whose child is killed by a signal can still exit 0 through `go tool`, # which would let a security or lint gate pass without having run. set -uo pipefail if [ "$#" -lt 2 ]; then echo "usage: run-gate.sh