I have validation statement (full githooks commit-msg): #!/bin/sh
read -r message<$1
if [[ $text =~ ^[a-z] ]]
then
printf "$warning Check commit message.\n"
exit 1
fi
When I make commit with text: "This is my test commit", githooks responds with:
[WARNING] Check commit message.
But when I make it with something like this: "this is my test commit", I get tge same result.
What an I doing wrong?
I am using Wind10, Git version 2.20.1.windows.1 and GitBash.