Skip to content
Snippets Groups Projects
Commit 3bc378f2 authored by Bob Mottram's avatar Bob Mottram
Browse files

Check for empty string

parent ee8870fd
No related branches found
No related tags found
No related merge requests found
......@@ -7548,8 +7548,10 @@ function configure_backup_key {
apt-get -y install gnupg
 
BACKUP_KEY_EXISTS=$(gpg --list-keys "$MY_NAME (backup key)")
if [ $BACKUP_KEY_EXISTS != *"error"* ]; then
return
if [ $BACKUP_KEY_EXISTS ]; then
if [ $BACKUP_KEY_EXISTS != *"error"* ]; then
return
fi
fi
 
# Generate a GPG key for backups
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment