fix a warning about deprecated egrep by using grep -E.

This commit is contained in:
Juho Hiltunen
2022-10-31 21:00:02 +02:00
parent bdd46838c0
commit b0661692b1
+1 -1
View File
@@ -8,7 +8,7 @@ echo -n "testing for Byte Order Marks in source files ... "
# TODO checking for other encodings (e.g. UTF-16, UTF-32, UTF-7) needs more elaborate search,
# otherwise it shows many false positives
egrep -rlI $'\xEF\xBB\xBF' * | tee tests/bom.check >/dev/null # UTF-8
grep -ErlI $'\xEF\xBB\xBF' * | tee tests/bom.check >/dev/null # UTF-8
if [ -s tests/bom.check ] ; then
echo "found:"