Skip to content

Instantly share code, notes, and snippets.

View brycepj's full-sized avatar

Bryce Johnson brycepj

View GitHub Profile
#!/bin/bash
LINE=$(head -n 1 $1);
LENGTH=${#LINE};
if [[ $LENGTH -gt 50 ]]; then {
echo "Commit Aborted!";
echo -e "Message is \e[31m$LENGTH characters long\e[0m, must be <= 50."
exit 1;
} fi;