From d134bc0c11b63ada9066cd74202b3c0c5ef84d2b Mon Sep 17 00:00:00 2001 From: Artur Neumann Date: Mon, 23 Dec 2024 15:51:35 +0545 Subject: [PATCH] fix comparison spaces are needed around the comparison operator. See https://github.com/koalaman/shellcheck/wiki/SC2077 This fixes the issue that even `validate.sh` finds an issue the return code is `0` --- hooks/validate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/validate.sh b/hooks/validate.sh index 1c52822..056c09d 100644 --- a/hooks/validate.sh +++ b/hooks/validate.sh @@ -309,7 +309,7 @@ validate_commit_and_parents() { fi done <<< $(printf "%s" "$PARENTS") fi - if [ "$ALL_PASSED"=true ]; then + if [ "$ALL_PASSED" = true ]; then return 0 fi return 1