clang-format: use grep -E instead of egrep

The GNU grep installation on Fedora 38 throws this warning:
egrep: warning: egrep is obsolescent; using grep -E
This commit is contained in:
Pavel Raiskup 2023-04-20 13:24:30 +02:00 committed by kolage
parent 951a391c5f
commit 41676c39a8
1 changed files with 2 additions and 2 deletions

View File

@ -27,9 +27,9 @@ fi
EXCLUDE=":!:test/tutorial"
if [ -n "`git diff --name-only`" ]; then
FILES=`git diff --name-only -- "$@" $EXCLUDE | egrep '\.(c|cpp|h|hpp)$'`
FILES=`git diff --name-only -- "$@" $EXCLUDE | grep -E '\.(c|cpp|h|hpp)$'`
else
FILES=`git ls-files -- "$@" $EXCLUDE | egrep '\.(c|cpp|h|hpp)$'`
FILES=`git ls-files -- "$@" $EXCLUDE | grep -E '\.(c|cpp|h|hpp)$'`
fi
for FILE in $FILES; do