Create a gpg key is the ID isn't found
This commit is contained in:
parent
55c76ed6f6
commit
ad02634386
|
@ -1380,13 +1380,14 @@ 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'
|
||||
fi
|
||||
else
|
||||
chown -R $MY_USERNAME:$MY_USERNAME $gpg_dir
|
||||
chmod 700 $gpg_dir
|
||||
chmod 600 $gpg_dir/*
|
||||
mark_completed $FUNCNAME
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -d $gpg_dir ]; then
|
||||
mkdir $gpg_dir
|
||||
|
|
Loading…
Reference in New Issue