diff options
author | root <root@localhost> | 2012-11-22 02:46:46 +0100 |
---|---|---|
committer | root <root@localhost> | 2012-11-22 02:46:46 +0100 |
commit | 100490af1f2cc13e5181804c3e85e92ec3376531 (patch) | |
tree | 6ea199608514e0fdb1b3865d529c7eb3207d2168 | |
parent | 1c02c0f6cbc45322658410cd50c331c6c52d55fe (diff) | |
download | git-remote-gcrypt-100490af1f2cc13e5181804c3e85e92ec3376531.zip git-remote-gcrypt-100490af1f2cc13e5181804c3e85e92ec3376531.tar.gz git-remote-gcrypt-100490af1f2cc13e5181804c3e85e92ec3376531.tar.bz2 |
Use filter_to for key_line
-rwxr-xr-x | git-remote-gcrypt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git-remote-gcrypt b/git-remote-gcrypt index f159cee..9373901 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -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"*} |