Explorar o código

tools/update-thanks: Match case-insensitively

When checking whether an author name already exists in the AUTHORS or
THANKS.in file, perform a case-insensitive match.
Holger Weiss %!s(int64=9) %!d(string=hai) anos
pai
achega
5553c0be7c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/update-thanks

+ 1 - 1
tools/update-thanks

@@ -34,7 +34,7 @@ git log --pretty='%an' "$since.." | sort -u | while read first last rest
 do
 	if [ -n "$first" -a -n "$last" -a -z "$rest" ]
 	then
-		if ! grep -q "^$first $last$" AUTHORS THANKS.in
+		if ! grep -q -i "^$first $last$" AUTHORS THANKS.in
 		then
 			echo "$first $last" >> THANKS.in
 		fi