Exit if the gpg key cannot be split

This commit is contained in:
Bob Mottram 2015-07-05 22:15:12 +01:00
parent f7dc604b23
commit 8e86f06ced
1 changed files with 4 additions and 0 deletions

View File

@ -6607,6 +6607,10 @@ function split_gpg_key_into_fragments {
if [[ $ENABLE_SOCIAL_KEY_MANAGEMENT == "yes" ]]; then
echo 'Splitting GPG key. You may need to enter your passphrase.'
freedombone-splitkey -u $MY_USERNAME -e $MY_EMAIL_ADDRESS
if [ ! -d /home/$MY_USERNAME/.gnupg_fragments ]; then
echo 'Yhe GPG key could not be split'
exit 86548
fi
fi
}