Fix author name parsing

This commit is contained in:
Fritz Lin 2016-05-08 23:28:23 +08:00
parent 07b4f92f3c
commit e9254399ff

View file

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