aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@localhost>2013-01-04 10:40:21 +0000
committerroot <root@localhost>2013-01-04 10:40:21 +0000
commit1c02c0f6cbc45322658410cd50c331c6c52d55fe (patch)
tree99b8daf2444909e09155116afed5f3685bba4228
parent698bc260c3a9904004da62f6d32393e2f358842e (diff)
downloadgit-remote-gcrypt-1c02c0f6cbc45322658410cd50c331c6c52d55fe.zip
git-remote-gcrypt-1c02c0f6cbc45322658410cd50c331c6c52d55fe.tar.gz
git-remote-gcrypt-1c02c0f6cbc45322658410cd50c331c6c52d55fe.tar.bz2
Fix checking for multiple keys
-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 :)