summaryrefslogtreecommitdiff
path: root/plugins/rsync
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/rsync')
-rwxr-xr-xplugins/rsync6
1 files changed, 5 insertions, 1 deletions
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}" <new || exit 1
+ else
+ gpgv --keyring "${KEYRING}" --status-fd 2 new.sig new || exit 1
+ fi
# return 1 because it's not clear what other codes may be safe to
# use that do not overlap with codes from rsync.
fi