From 274cabf05a65879842a92b69133a293cfb8ea168 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Tue, 2 Apr 2024 14:01:20 +1300 Subject: [PATCH] fix(*): Added git-commit hook :hammer: --- .githooks/commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.githooks/commit-msg b/.githooks/commit-msg index bb2ada3..16b4def 100755 --- a/.githooks/commit-msg +++ b/.githooks/commit-msg @@ -3,7 +3,7 @@ # Run the script and get the return code if successful of if fails ./scripts/commit-filter-check.sh && rc=$? || rc=$? echo return code : $rc -if [ ${rc} == 1 ]; then +if [ ${rc} = 1 ]; then echo "Script return code 1 so commit failed" exit 1 else