pino_argparse 0.1.0

a tiny argparsing library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

BOLD='\033[1;36m'
NC='\033[0m'
branch=`git branch --show-current`
if [ "$branch" = "master" ]; then
    msg=`cat .git/COMMIT_EDITMSG`
    echo $msg
    grep -q "(master)" <<< "$msg"
    if [ $? -eq 1 ]; then
        printf "${BOLD}[PRE-COMMIT]${NC} Commit message does not contain the substring '(master)', aborting...\n"
        exit 1;
    fi;
fi