This commit is contained in:
Bob Mottram 2015-12-01 23:15:42 +00:00
parent 583f06a72c
commit 884a1cb2ed
1 changed files with 2 additions and 2 deletions

View File

@ -7521,11 +7521,11 @@ function gpg_key_exists {
else else
KEY_EXISTS=$(gpg --list-keys "${key_search_text}") KEY_EXISTS=$(gpg --list-keys "${key_search_text}")
fi fi
if [ ! $KEY_EXISTS ]; then if [ ! "$KEY_EXISTS" ]; then
echo "no" echo "no"
return return
fi fi
if [ $KEY_EXISTS == *"error"* ]; then if [ "$KEY_EXISTS" == *"error"* ]; then
echo "no" echo "no"
return return
fi fi