Procházet zdrojové kódy

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 před 9 roky
rodič
revize
5553c0be7c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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