From 61124979ecc3c85f9499fb6ee9910ce58e83b211 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Thu, 21 Oct 2021 16:24:56 -0500 Subject: [PATCH] oem-factory-reset: fix custom comment entry copy/paste error resulted in user-entered comment never being set/checked/used, and email address being overwritten. Fix variable usage so comment and email are set correctly. Signed-off-by: Matt DeVillier --- initrd/bin/oem-factory-reset | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/initrd/bin/oem-factory-reset b/initrd/bin/oem-factory-reset index d1c93bf9..af05e386 100755 --- a/initrd/bin/oem-factory-reset +++ b/initrd/bin/oem-factory-reset @@ -341,11 +341,11 @@ if [ "$prompt_output" == "y" \ };done echo -e "\nEnter Comment (Optional, to distinguish this key from others with same previous attributes. Must be smaller then 60 characters):" - read -r GPG_USER_MAIL - while [[ ${#gpgcard_comment} -gt 60 ]]; do + read -r GPG_USER_COMMENT + while [[ ${#GPG_USER_COMMENT} -gt 60 ]]; do { echo -e "\nEnter Comment (Optional, to distinguish this key from others with same previous attributes. Must be smaller then 60 characters):" - read -r GPG_USER_MAIL + read -r GPG_USER_COMMENT };done fi