1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/env bash set -eu SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" cd "$SCRIPT_DIR" # shellcheck disable=SC1091 source ./log if ! git verify-commit HEAD; then log_error "Current commit failed signature check" exit 1 fi