1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

support multiple keys in yadm.gpg-recipient

This commit is contained in:
Stig Palmquist
2019-01-20 20:26:18 +01:00
parent 09a018ea5a
commit d075438308

5
yadm
View File

@@ -425,7 +425,10 @@ function encrypt() {
if [ "$GPG_KEY" = "ASK" ]; then
GPG_OPTS=("--no-default-recipient" "-e")
elif [ "$GPG_KEY" != "" ]; then
GPG_OPTS=("-e" "-r $GPG_KEY")
GPG_OPTS=("-e")
for key in $GPG_KEY; do
GPG_OPTS+=("-r $key")
done
else
GPG_OPTS=("-c")
fi