diff --git a/.ci/travis-compile.sh b/.ci/travis-compile.sh index 7adc99c34..4aa1c1aa9 100644 --- a/.ci/travis-compile.sh +++ b/.ci/travis-compile.sh @@ -36,6 +36,10 @@ while [[ "$@" ]]; do shift ;; *) + if [[ $1 == -* ]]; then + echo "unrecognized option: $1" + exit 3 + fi BUILDTYPE="$1" shift ;; @@ -45,8 +49,8 @@ done # Check formatting using clang-format if [[ $CHECK_FORMAT ]]; then echo "Checking your code using clang-format..." - if ! diff="$(./clangify.sh --color-diff --cf-version)"; then - cat <