1
0
Fork 0
mirror of synced 2024-12-13 02:45:45 -05:00

Merge pull request #139 from stigtsp/multiple-gpg-recipients

This commit is contained in:
Tim Byrne 2020-01-14 08:08:44 -06:00
commit 0b22220e3c
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

5
yadm
View file

@ -874,7 +874,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