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 <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
Somebody Master 2023-02-17 00:29:06 +01:00
parent a154faaef5
commit 67483eaea2
Signed by: somebody_master
GPG Key ID: 78315CFDF0B25505

View File

@ -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