Skip to content

Commit 844d107

Browse files
committed
Enforce grep -E instead of egrep
The egrep command has been deprecated since 2007. Beginning with GNU grep 3.8, calling the command will now issue a warning to the user that instead they should use 'grep -E'.
1 parent 2b55930 commit 844d107

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.ci/check-format.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
SOURCES=$(find $(git rev-parse --show-toplevel) | egrep "\.(cpp|h)\$")
3+
SOURCES=$(find $(git rev-parse --show-toplevel) | grep -E "\.(cpp|h)\$")
44

55
set -x
66

@@ -9,4 +9,4 @@ do
99
clang-format-14 ${file} > expected-format
1010
diff -u -p --label="${file}" --label="expected coding style" ${file} expected-format
1111
done
12-
exit $(clang-format-14 --output-replacements-xml ${SOURCES} | egrep -c "</replacement>")
12+
exit $(clang-format-14 --output-replacements-xml ${SOURCES} | grep -E -c "</replacement>")

0 commit comments

Comments
 (0)