diff --git a/scripts/githooks/commit-msg b/scripts/githooks/commit-msg index e91555c..5a827bb 100644 --- a/scripts/githooks/commit-msg +++ b/scripts/githooks/commit-msg @@ -59,12 +59,10 @@ $GITLINT_DIR \ --body-regex=".*" \ --max-parents=1 -if [ $? -ne 0 ] -then - if ! command -v $GITLINT_DIR &>/dev/null; then - printError "$GITLINT_DIR not found. Please run 'make tools' OR 'make tools.verify.go-gitlint' make verto install it." - fi +if ! command -v $GITLINT_DIR &>/dev/null; then + printError "$GITLINT_DIR tool is not available and the commit message linting process will be skipped." + exit 0 +else printError "Please fix your commit message to match kubecub coding standards" printError "https://gist.github.com/cubxxw/126b72104ac0b0ca484c9db09c3e5694#file-githook-md" - exit 1 fi \ No newline at end of file