#!/bin/sh # curl plugin # # ENVIRONMENT VARIABLES: # URL URL to download known_hosts file from # CURL_OPTIONS options passed to curl # SIGURL URL of the OpenPGP signature # KEYRING path to the OpenPGP keyring with certificates # set -e if [ "${SIGURL}" ]; then curl -fRz "./current" -m 300 ${CURL_OPTIONS} -o new.sig "${SIGURL}" -o new "${URL}" [ -e new ] || exit 0 if command -v sopv >/dev/null; then sopv verify new.sig "${KEYRING}"