Browse Source

Exit if the gpg key cannot be split

Bob Mottram 10 years ago
parent
commit
8e86f06ced
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/freedombone

+ 4
- 0
src/freedombone View File

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