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
KEY_EXISTS=$(gpg --list-keys "${key_search_text}")
fi
if [ ! $KEY_EXISTS ]; then
if [ ! "$KEY_EXISTS" ]; then
echo "no"
return
fi
if [ $KEY_EXISTS == *"error"* ]; then
if [ "$KEY_EXISTS" == *"error"* ]; then
echo "no"
return
fi