You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by sh...@apache.org on 2022/09/16 06:33:06 UTC
[kafka] branch trunk updated: MINOR: replace deprecated egrep in kafka-run-class (#12649)
This is an automated email from the ASF dual-hosted git repository.
showuon pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new fdcde1fb78 MINOR: replace deprecated egrep in kafka-run-class (#12649)
fdcde1fb78 is described below
commit fdcde1fb78493ebc4402af99b39f09fac6e6009a
Author: Matthew Stidham <st...@gmail.com>
AuthorDate: Thu Sep 15 23:32:53 2022 -0700
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 <st...@gmail.com>
Reviewers: Luke Chen <sh...@gmail.com>
---
bin/kafka-run-class.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/kafka-run-class.sh b/bin/kafka-run-class.sh
index a9096ea021..6d8c38f9b1 100755
--- a/bin/kafka-run-class.sh
+++ b/bin/kafka-run-class.sh
@@ -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