From 8e86f06ced534dea1a51d73d1a378592a43318a5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 5 Jul 2015 22:15:12 +0100 Subject: [PATCH] Exit if the gpg key cannot be split --- src/freedombone | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone b/src/freedombone index 585b1ab0..f05174a0 100755 --- a/src/freedombone +++ b/src/freedombone @@ -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 }