github.com/deemoprobe/k8s-first-commit@v0.0.0-20230430165612-a541f1982be3/hooks/commit-msg (about) 1 #!/bin/bash 2 3 if [[ "$(grep -c "# then delete this line" $1)" == "1" ]]; then 4 echo "Unresolved gofmt errors. Aborting commit." 5 echo "The message of your attempted commit was:" 6 cat $1 7 exit 1 8 fi 9 10 exit 0