mirror of https://github.com/apache/kafka.git
MINOR: replace deprecated egrep in kafka-run-class (#12649)
The egrep is deprecated in 2007 and be replaced with grep -E Signed-off-by: Matthew Stidham <stidmatt@gmail.com> Reviewers: Luke Chen <showuon@gmail.com>
This commit is contained in:
parent
b09cadcaa7
commit
fdcde1fb78
|
@ -38,7 +38,7 @@ should_include_file() {
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
file=$1
|
file=$1
|
||||||
if [ -z "$(echo "$file" | egrep "$regex")" ] ; then
|
if [ -z "$(echo "$file" | grep -E "$regex")" ] ; then
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in New Issue