From dfbb004a4ae0bbf225173854ca71ec0ea761cd9c Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sun, 20 Nov 2022 23:11:00 +0100 Subject: Fix script for updating contributors --- extra/release/update-contributors.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extra') diff --git a/extra/release/update-contributors.sh b/extra/release/update-contributors.sh index fe896b64..880752a8 100755 --- a/extra/release/update-contributors.sh +++ b/extra/release/update-contributors.sh @@ -12,13 +12,13 @@ function main() git log "$(git describe --abbrev=0)..HEAD" --pretty='format:%cN%n%aN' > "$new_contributors" awk '/^ \* / { split($0, cols, " \\* "); print(cols[2]); }' "$(path_in_repo CONTRIBUTORS.md)" | { - grep -F -x -v -f "$new_contributors" + grep -F -x -v -f- "$new_contributors" } | { local grep_patterns=( - GitHub + -e GitHub ) grep -F -x -v "${grep_patterns[@]}" - } > "$new_contributors.filtered" + } | sort -u > "$new_contributors.filtered" awk '{printf(" * %s\n", $0)}' "$new_contributors.filtered" >> "$(path_in_repo CONTRIBUTORS.md)" } main "$@" -- cgit v1.2.1