Exit without error if the user answers no

This commit is contained in:
Pierre Labastie 2013-11-16 10:00:16 +00:00
parent f60a8b73b3
commit d023a3519f
2 changed files with 2 additions and 2 deletions

2
jhalfs
View file

@ -277,7 +277,7 @@ echo -n "Are you happy with these settings? yes/no (no): "
read ANSWER read ANSWER
if [ x$ANSWER != "xyes" ] ; then if [ x$ANSWER != "xyes" ] ; then
echo "${nl_}Rerun make to fix the configuration options.${nl_}" echo "${nl_}Rerun make to fix the configuration options.${nl_}"
exit 1 exit
fi fi
echo "${nl_}${SD_BORDER}${nl_}" echo "${nl_}${SD_BORDER}${nl_}"

View file

@ -38,7 +38,7 @@ validate_opt_settings() { # Show optimize setting and wait user agreeme
read ANSWER read ANSWER
if [ x$ANSWER != "xyes" ] ; then if [ x$ANSWER != "xyes" ] ; then
echo "${nl_}Fix the optimization options and rerun the script.${nl_}" echo "${nl_}Fix the optimization options and rerun the script.${nl_}"
exit 1 exit
fi fi
echo "${nl_}${SD_BORDER}${nl_}" echo "${nl_}${SD_BORDER}${nl_}"
} }