Reformat CMake: Fail with exit code 1
@@ -14,7 +14,7 @@ cd "$SOURCE"
if [ -z "${CMAKE_FORMAT}" ]; then
printf 2>&1 'Please install `cmake-format`\n'
- exit 0
+ exit 1
fi
output=$("${CMAKE_FORMAT}" 2>&1 CMakeLists.txt)
@@ -26,7 +26,7 @@ fi
if [ -z "$(which sponge)" ]; then
printf 2>&1 'Please install `sponge`\n'
- exit 0
+ exit 1
fi
for file in $(find . \( -name 'CMakeLists.txt' -or -name '*.cmake' \) -and \
