Use filter_to for key_line
This commit is contained in:
parent
1c02c0f6cb
commit
100490af1f
1 changed files with 2 additions and 1 deletions
|
@ -422,7 +422,8 @@ read_config()
|
|||
|
||||
for recp_ in $conf_part
|
||||
do
|
||||
key_line=$(gpg --with-colons --fast-list -k "$recp_" | xgrep ^pub)
|
||||
filter_to @key_line "pub" \
|
||||
"$(gpg --with-colons --fast-list -k "$recp_")"
|
||||
isnull "$key_line" || isnonnull "${key_line##*"$Newline"*}" ||
|
||||
echo_info "WARNING: '$recp_' matches multiple keys, using one"
|
||||
key_line=${key_line%%"$Newline"*}
|
||||
|
|
Loading…
Reference in a new issue