From f55690e702ace70955a3932a0fd98ce94ebdd00e Mon Sep 17 00:00:00 2001 From: spacewander Date: Fri, 5 May 2017 15:27:00 +0800 Subject: [PATCH] git-authors: remove trailing spaces --- bin/git-authors | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-authors b/bin/git-authors index 8ededdb..d9db333 100755 --- a/bin/git-authors +++ b/bin/git-authors @@ -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