#!/bin/sh

# gpg-verify.sh KEYS_FILE SIGNATURE_FILE SIGNED_FILE

GNUPGHOME="$(mktemp -d)"
export GNUPGHOME
mkdir -p "$GNUPGHOME"
gpg --import "$1"
gpg --trust-model always --verify "$2" "$3"
res=$?
rm -rf "$GNUPGHOME"
exit $res
