With gpg 2.3+ user name can be empty

This commit is contained in:
Marcin Cieślak 2023-04-07 01:51:44 +02:00 committed by Thierry Laurion
parent c20c2bc580
commit b849cc022e
No known key found for this signature in database
GPG Key ID: E7B4A71658E36A93

View File

@ -508,13 +508,8 @@ if [ "$prompt_output" == "y" \
echo -e "We will generate a GnuPG (PGP) keypair identifiable with the following text form:"
echo -e "Real Name (Comment) email@address.org"
echo -e "\nEnter your Real Name (At least 5 characters long):"
echo -e "\nEnter your Real Name (Optional):"
read -r GPG_USER_NAME
while [[ ${#GPG_USER_NAME} -lt 5 ]]; do
{
echo -e "\nEnter your Real Name (At least 5 characters long):"
read -r GPG_USER_NAME
};done
echo -e "\nEnter your email@adress.org:"
read -r GPG_USER_MAIL