aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xgit-remote-gcrypt2
1 files changed, 1 insertions, 1 deletions
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 :)