case insensitive contributor compare

https://github.com/ankitects/anki/pull/428
This commit is contained in:
Damien Elmes 2020-01-24 17:27:43 +10:00
parent b4c8eaf4bb
commit b821209f83

View File

@ -9,7 +9,7 @@ git log --pretty=format:' - %ae' CONTRIBUTORS |sort |uniq |sort -f | sed "s/@/$a
headAuthor=$(git log -1 --pretty=format:'%ae') headAuthor=$(git log -1 --pretty=format:'%ae')
authorAt=$(echo "$headAuthor" | sed "s/@/$antispam/") authorAt=$(echo "$headAuthor" | sed "s/@/$antispam/")
if git log --pretty=format:'%ae' CONTRIBUTORS | grep -q "$headAuthor"; then if git log --pretty=format:'%ae' CONTRIBUTORS | grep -qi "$headAuthor"; then
echo "Author $authorAt found in CONTRIBUTORS" echo "Author $authorAt found in CONTRIBUTORS"
else else
echo "Author $authorAt NOT found in list" echo "Author $authorAt NOT found in list"