@@ -61,8 +61,7 @@ jobs:
61 - name: Check commit message
61 - name: Check commit message
63 # Get last commit message
63 # Get last commit message
64− git log -1 --pretty=format:"%s" --no-merges | grep -c "^[^#].{78}"
64+ if git log -1 --pretty=format:"%s" --no-merges | grep -E -c "^[^#].{78}"; then
65− if [ $? -eq 0 ]; then
66 echo "Last commit log contains a line with more than 78 characters."
65 echo "Last commit log contains a line with more than 78 characters."