githooks

Personal git hooks
git clone git://pollux.codes/git/githooks.git
Log | Files | Refs | README

commit 508ea911e53ad42674dcba2f619f5b4affbc18ac
parent 2b346470b1b4ffd80e672f370bdcaf7492891989
Author: Pollux <pollux@pollux.codes>
Date:   Mon, 10 Feb 2025 01:38:23 -0600

fix(c): Clean up temporary files

Signed-off-by: Pollux <pollux@pollux.codes>

Diffstat:
Mc/pre-commit | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/pre-commit b/c/pre-commit @@ -35,7 +35,7 @@ for file in `git diff-index --cached --name-only HEAD --diff-filter=ACMR | grep VERSION_CONTROL=none indent $PARAMS $file 2>> /dev/null diff -u -p $tmpfile $file 2>> /dev/null res=$? - rm $newfile + rm $tmpfile if [ $res != 0 ] ; then echo "Code style error in $file" code=1