fix authors counting for multi files handling

This commit is contained in:
MorganGeek 2021-07-05 11:08:59 +02:00
parent ef6ebe381f
commit 08b41fbcbe

View File

@ -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 "$@"