#!/usr/bin/env sh # pgp-wkd - A web key directory for pgp-keys # # Copyright (C) 2025 Benedikt Peetz # SPDX-License-Identifier: CC-BY-SA-4.0 # # This file is part of pgp-wkd. # # You should have received a copy of the License along with this program. # If not, see . die() { echo "$@" exit 1 } help() { cat <>stored_keys.md && echo "Key export done!" } for arg in "$@"; do case "$arg" in "--help" | "-h") help exit 0 ;; esac done fqdn="$1" email_address="$2" shift 2 [ -z "$fqdn" ] && die "No FQDN specified, see '--help'!" [ -z "$email_address" ] && die "No EMAIL_ADDRESS specified, see '--help'!" [ -n "$*" ] && die "The arguments '$*' are not recognized; see '--help' for a list!" add "$fqdn" "$email_address" # vim: ft=sh