Fix yesno bug

This commit is contained in:
Suikan 2021-06-29 06:33:55 +09:00
parent a1ce4fe5b4
commit d0ffac92cb

View file

@ -20,7 +20,7 @@ source config.sh
# For surre ask the config.sh is edited # For surre ask the config.sh is edited
echo "Did you edit config.sys? Are you ready to install? [Y/N]" echo "Did you edit config.sys? Are you ready to install? [Y/N]"
read YESNO read YESNO
if [ YESNO != "Y" -a YESNO != "y" ] ; then if [ ${YESNO} != "Y" -a ${YESNO} != "y" ] ; then
cat <<HEREDOC 1>&2 cat <<HEREDOC 1>&2
Installation terminated. Installation terminated.
@ -33,7 +33,7 @@ fi # if YES
if [ ${ERASEALL} -eq 1 ] ; then if [ ${ERASEALL} -eq 1 ] ; then
echo "Are you sure you want to erase entire ${DEV}? [Y/N]" echo "Are you sure you want to erase entire ${DEV}? [Y/N]"
read YESNO read YESNO
if [ YESNO != "Y" -a YESNO != "y" ] ; then if [ ${YESNO} != "Y" -a ${YESNO} != "y" ] ; then
cat <<HEREDOC 1>&2 cat <<HEREDOC 1>&2
Check config.sh. The ERASEALL is ${ERASEALL}. Check config.sh. The ERASEALL is ${ERASEALL}.