fixed prompt for BIOS check; would hang if answer was not y

This commit is contained in:
tastytea 2017-10-25 12:32:22 +02:00
parent 4f201e055a
commit 292ed4e82b
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5

View File

@ -12,7 +12,7 @@
# meet some day, and you think this stuff is worth it, you can give us a hug. #
###################################################################################
VERSION="0.9.3"
VERSION="0.9.4"
PATH="/bin:/usr/bin:/sbin:/usr/sbin:${PATH}"
DIGEST_FILE="/var/lib/hashboot.digest"
@ -115,10 +115,10 @@ else
echo "BACKUP_FILE=${BACKUP_FILE}" >> ${CONFIG_FILE}
echo -n "Include BIOS check? (y/n)"
read prompt
while [[ ! $prompt == "y" || $prompt == "Y" || $prompt == "n" || $prompt == "N" ]]; do
while ! [[ $prompt == "y" || $prompt == "Y" || $prompt == "n" || $prompt == "N" ]]; do
read prompt
done
if [ "${prompt}" == "y" ]; then
if [[ "${prompt}" == "y" || "${prompt}" == "Y" ]]; then
if which flashrom; then
flashrom
echo -n "Which programmer? (eg. internal) "