From e366f12b56dbb8a6ac407e2b97d9b8584a5fd6c3 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 22 Jan 2024 14:03:41 +0100 Subject: [PATCH] Uncomment git validation hook --- githooks/pre-commit | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/githooks/pre-commit b/githooks/pre-commit index 77c1a1f..cd31ad5 100755 --- a/githooks/pre-commit +++ b/githooks/pre-commit @@ -57,13 +57,13 @@ esac if [ -n "$validate" ]; then /bin/echo -e "\x1b[33mValidating commit\x1b[0m" /bin/echo -e "\x1b[2mλ $validate\x1b[0m" - # if sh -c "$validate" - # then - # /bin/echo -e "\x1b[32mValidation Passed!\x1b[0m" - # else - # error=1 - # /bin/echo -e "\x1b[1;31mValidation Failed!\x1b[0m" - # fi + if sh -c "$validate" + then + /bin/echo -e "\x1b[32mValidation Passed!\x1b[0m" + else + error=1 + /bin/echo -e "\x1b[1;31mValidation Failed!\x1b[0m" + fi fi rm .git