Skip to content

Commit

Permalink
With gpg 2.3+ user name can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
saper committed Apr 6, 2023
1 parent 3c4b1cc commit 997a793
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions initrd/bin/oem-factory-reset
Original file line number Diff line number Diff line change
Expand Up @@ -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 protected]"

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 protected]:"
read -r GPG_USER_MAIL
Expand Down

0 comments on commit 997a793

Please sign in to comment.