Merge pull request #317 from bjonnh/patch-1

Add support for multiple GPG subkeys
This commit is contained in:
Jaromil 2018-08-19 23:25:03 +02:00 committed by GitHub
commit 7c8067fef3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
tomb
View File

@ -1242,7 +1242,7 @@ gen_key() {
_warning "It is your responsibility to check these fingerprints."
_warning "The fingerprints are:"
for gpg_id in ${recipients[@]}; do
_warning " `_fingerprint "$gpg_id"`"
_warning " `_fingerprint "$gpg_id"` ($gpg_id)"
done
gpgopt+=(`_recipients_arg "$recipients_opt" $recipients`)
@ -1322,7 +1322,7 @@ gen_key() {
local tmpres=$TOMBTMP
print $opt - "$gpgpass" \
| gpg --openpgp --force-mdc --cipher-algo ${algo} \
--batch --no-tty ${gpgopt[@]} \
--batch --no-tty ${gpgopt} \
--status-fd 2 -o - --armor 2> $tmpres
unset gpgpass
# check result of gpg operation