From 08b41fbcbe9c80cd1179376e86caf445034776e1 Mon Sep 17 00:00:00 2001 From: MorganGeek Date: Mon, 5 Jul 2021 11:08:59 +0200 Subject: [PATCH] fix authors counting for multi files handling --- top_authors.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/top_authors.sh b/top_authors.sh index a23e4bf..82df74d 100755 --- a/top_authors.sh +++ b/top_authors.sh @@ -9,6 +9,6 @@ function fetch_top_authors() { basedir=$(dirname "$0") filter="${1:-}" - grep http "$basedir/README.md" | grep -i "${filter}" | cut -d '[' -f 2 | cut -d ']' -f 1 | sed 's/\*//g' | grep -v "/" | sort | uniq -c | sort -n + grep http "$basedir/README.md" "$basedir/sections/"*.md | grep -i "${filter}" | cut -d '[' -f 2 | cut -d ']' -f 1 | sed 's/\*//g' | grep -v "/" | sort | uniq -c | sort -n } fetch_top_authors "$@"