Ensure ci script fails properly with invalid parameters
Prevent the ci script from going to infinite loop if the user provides a non POSIX style command line argument (not prefixed with - or --) Original commit: elastic/x-pack-elasticsearch@e0eb0e6df7
This commit is contained in:
parent
d19c13d2b5
commit
46055d0430
|
@ -25,12 +25,9 @@ case $key in
|
|||
echo -e "Syntax:\n"
|
||||
echo -e "$0 [-g|--gradleoptstring] \"override gradle parameters for tests\"\n"
|
||||
exit 0;;
|
||||
-*)
|
||||
*)
|
||||
echo "Unknown argument: $key";
|
||||
exit 1;;
|
||||
*)
|
||||
# Unknown option
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue