git-authors: remove trailing spaces

This commit is contained in:
spacewander 2017-05-05 15:27:00 +08:00
parent 204406bd29
commit f55690e702

View file

@ -38,7 +38,7 @@ authors() {
if $NO_EMAIL; then
# eamil will be used to uniq authors.
git shortlog -sne | awk '{$1=""; sub(" ", ""); print}' | awk -F'<' '!x[$1]++' | awk -F'<' '!x[$2]++' \
| awk -F'<' '{print $1}'
| awk -F'<' '{gsub(/ +$/, "", $1); print $1}'
else
git shortlog -sne | awk '{$1=""; sub(" ", ""); print}' | awk -F'<' '!x[$1]++' | awk -F'<' '!x[$2]++'
fi