clang-check(tools): exit when set illegal option

and not when pass -c parameter, it is break some part of gitlab-ci (Clang Builder)
This commit is contained in:
Alexis La Goutte 2021-09-01 06:46:22 +00:00 committed by Wireshark GitLab Utility
parent fb6aa10c12
commit bbcedb667c
1 changed files with 1 additions and 1 deletions

View File

@ -18,10 +18,10 @@ do
case $OPTCHAR in
c)
CLANG_CHECK_CMD="clang-check-$OPTARG"
exit 0
;;
*)
echo "Usage: $( basename "$0" ) [ -c <clang version> ]"
exit 0
esac
done