Merge pull request #22 from fritx/author-name

Fix author name parsing
This commit is contained in:
Jay Phelps 2016-05-08 18:06:03 -07:00
commit 2624bc8176

View file

@ -6,7 +6,7 @@ if [ $# -ne 2 ]; then
fi
AUTHOR=$1
AUTHOR_NAME=$(echo $AUTHOR | perl -wlne '/^(.*)\s*<.*>$/ and print $1')
AUTHOR_NAME=$(echo $AUTHOR | perl -wlne '/^(.*?)\s*<.*>$/ and print $1')
AUTHOR_EMAIL=$(echo $AUTHOR | perl -wlne '/^.*\s*<(.*)>$/ and print $1')
COMMIT=$(git rev-parse --short $2)