From 3e378e21cae15723dbcb3e8f3d8b6fec204b7146 Mon Sep 17 00:00:00 2001 From: ralfulrich <ralf.ulrich@kit.edu> Date: Thu, 6 Jun 2019 12:39:43 +0200 Subject: [PATCH] fixed script --- do-clang-format.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/do-clang-format.sh b/do-clang-format.sh index 816ef19bd..4141a193d 100755 --- a/do-clang-format.sh +++ b/do-clang-format.sh @@ -5,7 +5,7 @@ command="clang-format -style=file `find . -iregex '^.*\.\(cc\|h\)$' -not -path ' if [ "$1" == "check" ]; then `! ${command} -output-replacements-xml | grep -qc "<replacement "` || \ - { echo "format-check FAILED!"; exit $ERRCODE; } + { echo "format-check FAILED!"; exit 1; } echo "Congratulations: format-check succeeded" elif [ "$1" == "apply" ]; then -- GitLab