Reformat CMake: Fail if `cmake-format` is broken
@@ -21,7 +21,7 @@ output=$(2>&1 "${CMAKE_FORMAT}" CMakeLists.txt)
if [ $? != 0 ]; then
2>&1 printf 'It seems your local installation of `cmake-format` is broken:\n\n%s' "$output"
- exit 0
+ exit 1
fi
if [ -z "$(which sponge)" ]; then
