This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#http://chris.beams.io/posts/git-commit/#seven-rules | |
cnt=0 | |
while IFS='' read -r line || [[ -n "$line" ]]; do | |
cnt=$((cnt+1)) | |
length=${#line} | |
if [ $cnt -eq 1 ]; then | |
# Checking if subject exceeds 50 characters | |
if [ $length -gt 50 ]; then | |
echo "Your subject line exceeds 50 characters." |