From 637c16eabbcd48c889b424edbf8823d10d9cb3f5 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 17 Aug 2015 23:22:06 -0400 Subject: git-stats.sh: Move shortlog output to variable Capture the shortlog output so we can use it later on. --- git-stats.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git-stats.sh b/git-stats.sh index 63eab68..8e5e714 100755 --- a/git-stats.sh +++ b/git-stats.sh @@ -17,4 +17,6 @@ GIT_REPO=$1 cd $GIT_REPO -git shortlog -ns --no-merges | awk '{printf "%s:%s\n", $2, $1}' | asciigraph -l "$1" --color +shortlog=$(git shortlog -ns --no-merges) + +echo "$shortlog" | awk '{printf "%s:%s\n", $2, $1}' | asciigraph -l "$1" --color -- cgit v1.2.3