Browse Source

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>
pull/12655/head
Matthew Stidham 2 years ago committed by GitHub
parent
commit
fdcde1fb78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      bin/kafka-run-class.sh

2
bin/kafka-run-class.sh

@ -38,7 +38,7 @@ should_include_file() { @@ -38,7 +38,7 @@ should_include_file() {
return 0
fi
file=$1
if [ -z "$(echo "$file" | egrep "$regex")" ] ; then
if [ -z "$(echo "$file" | grep -E "$regex")" ] ; then
return 0
else
return 1

Loading…
Cancel
Save