#!/usr/bin/env bash # Check: GPG key exists for operator # Returns 0 if GPG key found, 1 otherwise set -euo pipefail : "${OPERATOR_EMAIL:=}" if [[ -z "$OPERATOR_EMAIL" ]]; then exit 1 fi gpg --list-keys "$OPERATOR_EMAIL" &>/dev/null