Return if key exists

This commit is contained in:
Bob Mottram 2015-09-20 17:09:38 +01:00
parent 88ef1e1190
commit 1ec7f9041f
1 changed files with 1 additions and 1 deletions

View File

@ -6328,7 +6328,7 @@ function configure_backup_key {
apt-get -y install gnupg
BACKUP_KEY_EXISTS=$(su -c "gpg --list-keys \"$MY_EMAIL_ADDRESS (backup key)\"" - $MY_USERNAME)
if [ ! "$?" = "0" ]; then
if [ "$?" = "0" ]; then
return
fi