From 1c02c0f6cbc45322658410cd50c331c6c52d55fe Mon Sep 17 00:00:00 2001 From: root Date: Fri, 4 Jan 2013 10:40:21 +0000 Subject: Fix checking for multiple keys --- git-remote-gcrypt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-remote-gcrypt b/git-remote-gcrypt index f0cf43f..f159cee 100755 --- a/git-remote-gcrypt +++ b/git-remote-gcrypt @@ -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 :) -- cgit v1.1