mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 04:57:55 +00:00
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 <matt.devillier@puri.sm>
This commit is contained in:
parent
4dee35ae40
commit
61124979ec
@ -341,11 +341,11 @@ if [ "$prompt_output" == "y" \
|
|||||||
};done
|
};done
|
||||||
|
|
||||||
echo -e "\nEnter Comment (Optional, to distinguish this key from others with same previous attributes. Must be smaller then 60 characters):"
|
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
|
||||||
while [[ ${#gpgcard_comment} -gt 60 ]]; do
|
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):"
|
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
|
};done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user