]> Nutra Git (v1) - gamesguru/git-remote-gcrypt.git/commitdiff
Fix checking for multiple keys
authorroot <root@localhost>
Fri, 4 Jan 2013 10:40:21 +0000 (10:40 +0000)
committerroot <root@localhost>
Fri, 4 Jan 2013 10:40:21 +0000 (10:40 +0000)
git-remote-gcrypt

index f0cf43fc8b4a42af55303aecf18d7d787501aa8e..f159cee2cbf1d9a9cbbf631ec8920a331c6857ff 100755 (executable)
@@ -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 :)