Skip to content

Commit 885651a

Browse files
committed
With gpg 2.3+ user name can be empty
1 parent 84ac7eb commit 885651a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

initrd/bin/oem-factory-reset

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -508,13 +508,8 @@ if [ "$prompt_output" == "y" \
508508
echo -e "We will generate a GnuPG (PGP) keypair identifiable with the following text form:"
509509
echo -e "Real Name (Comment) [email protected]"
510510

511-
echo -e "\nEnter your Real Name (At least 5 characters long):"
511+
echo -e "\nEnter your Real Name (Optional):"
512512
read -r GPG_USER_NAME
513-
while [[ ${#GPG_USER_NAME} -lt 5 ]]; do
514-
{
515-
echo -e "\nEnter your Real Name (At least 5 characters long):"
516-
read -r GPG_USER_NAME
517-
};done
518513

519514
echo -e "\nEnter your [email protected]:"
520515
read -r GPG_USER_MAIL

0 commit comments

Comments
 (0)