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:
parent
951a391c5f
commit
41676c39a8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue