Fix checking for multiple keys
This commit is contained in:
parent
698bc260c3
commit
1c02c0f6cb
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ read_config()
|
|||
for recp_ in $conf_part
|
||||
do
|
||||
key_line=$(gpg --with-colons --fast-list -k "$recp_" | xgrep ^pub)
|
||||
isnonnull "${key_line##*"$Newline"*}" ||
|
||||
isnull "$key_line" || 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 :)
|
||||
|
|
Loading…
Reference in a new issue