aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-04-29 16:09:12 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-04-29 16:09:12 +0200
commit2fdd09cfb524248b1b8b12bab1bd6f9ce7a61d08 (patch)
tree4f917929eedc5170d018b931d330cb36093143ae
parentmake struct ci_queue_entry opaque (diff)
downloadcimple-2fdd09cfb524248b1b8b12bab1bd6f9ce7a61d08.tar.gz
cimple-2fdd09cfb524248b1b8b12bab1bd6f9ce7a61d08.zip
fix pre-commit.sh
-rwxr-xr-xscripts/pre-commit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/pre-commit.sh b/scripts/pre-commit.sh
index 8a98a0e..df003fe 100755
--- a/scripts/pre-commit.sh
+++ b/scripts/pre-commit.sh
@@ -8,7 +8,7 @@ if ! command -v git-clang-format &> /dev/null; then
exit 1
fi
-output="$( git clang-format --style file --diff )"
+output="$( git clang-format --style file --diff )" || true
ok1='no modified files to format'
ok2='clang-format did not modify any files'