read_config: only pick first key for each key id
This commit is contained in:
parent
cd90cea0fe
commit
5e090e019b
1 changed files with 3 additions and 0 deletions
|
@ -364,6 +364,9 @@ read_config()
|
|||
for recp_ in $conf_part
|
||||
do
|
||||
key_line=$(gpg --with-colons --fast-list -k "$recp_" | xgrep ^pub)
|
||||
isnonnull "${key_line##*"$Newline"*}" ||
|
||||
echo_info "WARNING: '$recp_' matches multiple keys, using one"
|
||||
key_line=${key_line%%"$Newline"*}
|
||||
keyid_=$(xecho "$key_line" | cut -f 5 -d :)
|
||||
|
||||
isnonnull "$keyid_" &&
|
||||
|
|
Loading…
Reference in a new issue