From b29ad4a5696aa1cbf85b77ae64c99865e57d2d6b Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 30 Sep 2024 01:39:13 +0200 Subject: Add sopv support This is a subset of the Stateless OpenPGP CLI , that can easily replace the GnuPG usage. There are multiple implementations providing this interface. --- plugins/rsync | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugins/rsync') diff --git a/plugins/rsync b/plugins/rsync index 6aec09c..1ee6831 100755 --- a/plugins/rsync +++ b/plugins/rsync @@ -15,7 +15,11 @@ rsync -vt --timeout=300 "${URL}" new if [ "${SIGURL}" ]; then rsync -vt --timeout=300 "${SIGURL}" new.sig - gpgv --keyring "${KEYRING}" --status-fd 2 new.sig new || exit 1 + if command -v sopv >/dev/null; then + sopv verify new.sig "${KEYRING}"