Skip to content

Commit db297bf

Browse files
committed
findrepo: avoid GREP_COLOR deprecation warning
This warning was seen with GNU grep 3.8. Use the GREP_COLORS env var instead, and specify the color for "mt=".
1 parent 193c124 commit db297bf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/findrepo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ done
8585
find . \( -type d -a \( $repo_ign \) \) -prune -o \
8686
\( -type f -name "$glob" -print0 \) |
8787
#LANG=C is to work around grep multibyte inefficiencies
88-
#GREP_COLOR="1;37;47" is bright yellow on black bg
89-
GREP_COLOR="1;33;40" LANG=C \
88+
#GREP_COLORS="mt=1;37;47" is bright yellow on black bg
89+
GREP_COLORS="mt=1;33;40" LANG=C \
9090
xargs -r0 $max_args $num_proc grep $colour $grep_options -- "$1"

0 commit comments

Comments
 (0)