Merge pull request #139 from stigtsp/multiple-gpg-recipients
This commit is contained in:
commit
0b22220e3c
1 changed files with 4 additions and 1 deletions
5
yadm
5
yadm
|
@ -874,7 +874,10 @@ function encrypt() {
|
||||||
if [ "$GPG_KEY" = "ASK" ]; then
|
if [ "$GPG_KEY" = "ASK" ]; then
|
||||||
GPG_OPTS=("--no-default-recipient" "-e")
|
GPG_OPTS=("--no-default-recipient" "-e")
|
||||||
elif [ "$GPG_KEY" != "" ]; then
|
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
|
else
|
||||||
GPG_OPTS=("-c")
|
GPG_OPTS=("-c")
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue