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

Fix support for multiple GPG recipients (#342)

This commit is contained in:
Tim Byrne
2021-05-17 15:42:35 -05:00
parent a4d39c7504
commit 5adb486727
2 changed files with 5 additions and 2 deletions

5
yadm
View File

@@ -865,7 +865,10 @@ function _set_gpg_options() {
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