From d0ffac92cb63e4718f247ced67e1e5d60df176dc Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Tue, 29 Jun 2021 06:33:55 +0900 Subject: [PATCH] Fix yesno bug --- ubuntu/1-pre-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ubuntu/1-pre-install.sh b/ubuntu/1-pre-install.sh index c5d95d7..ae2985e 100644 --- a/ubuntu/1-pre-install.sh +++ b/ubuntu/1-pre-install.sh @@ -20,7 +20,7 @@ source config.sh # For surre ask the config.sh is edited echo "Did you edit config.sys? Are you ready to install? [Y/N]" read YESNO -if [ YESNO != "Y" -a YESNO != "y" ] ; then +if [ ${YESNO} != "Y" -a ${YESNO} != "y" ] ; then cat <&2 Installation terminated. @@ -33,7 +33,7 @@ fi # if YES if [ ${ERASEALL} -eq 1 ] ; then echo "Are you sure you want to erase entire ${DEV}? [Y/N]" read YESNO - if [ YESNO != "Y" -a YESNO != "y" ] ; then + if [ ${YESNO} != "Y" -a ${YESNO} != "y" ] ; then cat <&2 Check config.sh. The ERASEALL is ${ERASEALL}.