diff --git a/src/freedombone-base-email b/src/freedombone-base-email index 430ac5d3..2bde27d7 100755 --- a/src/freedombone-base-email +++ b/src/freedombone-base-email @@ -1380,12 +1380,13 @@ function configure_gpg { MY_GPG_PUBLIC_KEY_ID=$(gpg_pubkey_from_email "$MY_USERNAME" "$MY_EMAIL_ADDRESS") if [ ${#MY_GPG_PUBLIC_KEY_ID} -lt 4 ]; then echo $'GPG public key ID could not be obtained' + else + chown -R $MY_USERNAME:$MY_USERNAME $gpg_dir + chmod 700 $gpg_dir + chmod 600 $gpg_dir/* + mark_completed $FUNCNAME + return fi - chown -R $MY_USERNAME:$MY_USERNAME $gpg_dir - chmod 700 $gpg_dir - chmod 600 $gpg_dir/* - mark_completed $FUNCNAME - return fi if [ ! -d $gpg_dir ]; then