From 67483eaea2d3a724bc23299e8ae014a73b1e05bc Mon Sep 17 00:00:00 2001 From: somebody_master Date: Fri, 17 Feb 2023 00:29:06 +0100 Subject: [PATCH] Fix exit on passing the wrong argument Also the error message is now valid for passing the wrong argument and also for not passing an argument. Signed-off-by: somebody_master --- build/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/build.sh b/build/build.sh index 2443f53..98aa252 100755 --- a/build/build.sh +++ b/build/build.sh @@ -7,7 +7,7 @@ _build_folder="gdextension" # Error variables _error_build_folder="${_build_folder} doesn't exist" -_error_no_option="\nYou have to indicate an option" +_error_no_option="\nYou have to indicate a valid option" # Platform variables _platform_linux="platform=linux" @@ -126,7 +126,7 @@ while getopts "bdchawlA" flag; do ;; \?) # Erroneus call Help - dirty_exit 0 + clean_exit 1 "$_error_no_option" ;; esac done