mirror of
https://github.com/TheLocehiliosan/yadm
synced 2024-10-27 20:34:27 +00:00
support multiple keys in yadm.gpg-recipient
This commit is contained in:
parent
09a018ea5a
commit
d075438308
5
yadm
5
yadm
@ -425,7 +425,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 New Issue
Block a user