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:
parent
a154faaef5
commit
67483eaea2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user