From ad026343869cb79901dbcefe352bcb557ec136b5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Sep 2017 21:31:06 +0100 Subject: [PATCH] Create a gpg key is the ID isn't found --- src/freedombone-base-email | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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