From 30f1bae54265336a12546fcefe10b5d8e5b8da71 Mon Sep 17 00:00:00 2001 From: kitty-panics Date: Thu, 28 Dec 2023 15:17:12 -0500 Subject: [PATCH] fix: egrep warning. egrep is obsolescent, using grep -E. --- acme.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acme.sh b/acme.sh index 75030acd..c6c7514f 100755 --- a/acme.sh +++ b/acme.sh @@ -923,7 +923,7 @@ _sed_i() { fi } -if [ "$(echo abc | egrep -o b 2>/dev/null)" = "b" ]; then +if [ "$(echo abc | grep -E -o b 2>/dev/null)" = "b" ]; then __USE_EGREP=1 else __USE_EGREP="" @@ -931,7 +931,7 @@ fi _egrep_o() { if [ "$__USE_EGREP" ]; then - egrep -o -- "$1" 2>/dev/null + grep -E -o -- "$1" 2>/dev/null else sed -n 's/.*\('"$1"'\).*/\1/p' fi