From d023a3519f2361e4defb61efe808b885b899e59d Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sat, 16 Nov 2013 10:00:16 +0000 Subject: [PATCH] Exit without error if the user answers no --- jhalfs | 2 +- optimize/optimize_functions | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jhalfs b/jhalfs index bee1145..6d4e4c4 100755 --- a/jhalfs +++ b/jhalfs @@ -277,7 +277,7 @@ echo -n "Are you happy with these settings? yes/no (no): " read ANSWER if [ x$ANSWER != "xyes" ] ; then echo "${nl_}Rerun make to fix the configuration options.${nl_}" - exit 1 + exit fi echo "${nl_}${SD_BORDER}${nl_}" diff --git a/optimize/optimize_functions b/optimize/optimize_functions index baec318..eeeb432 100644 --- a/optimize/optimize_functions +++ b/optimize/optimize_functions @@ -38,7 +38,7 @@ validate_opt_settings() { # Show optimize setting and wait user agreeme read ANSWER if [ x$ANSWER != "xyes" ] ; then echo "${nl_}Fix the optimization options and rerun the script.${nl_}" - exit 1 + exit fi echo "${nl_}${SD_BORDER}${nl_}" }