From: Simon Deziel Date: Wed, 23 Mar 2022 17:31:31 +0000 (-0400) Subject: egrep is deprecated X-Git-Tag: v0.7.1~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19c7fbbf479497d90e00d0821f049b0ec978f7c6;p=thirdparty%2Fdehydrated.git egrep is deprecated egrep has been deprecated since 2007 and warns it's obsolete since: https://git.savannah.gnu.org/cgit/grep.git/commit/?id=a9515624709865d480e3142fd959bccd1c9372d1 Signed-off-by: Simon Deziel --- diff --git a/dehydrated b/dehydrated index 9474d77..121c8e3 100755 --- a/dehydrated +++ b/dehydrated @@ -126,7 +126,7 @@ jsonsh() { fi # shellcheck disable=SC2196 - if echo "test string" | egrep -ao "test" >/dev/null 2>&1 + if echo "test string" | grep -Eao "test" >/dev/null 2>&1 then ESCAPE='(\\[^u[:cntrl:]]|\\u[0-9a-fA-F]{4})' CHAR='[^[:cntrl:]"\\]'