From 0ee247389ee16d7521ba91af2a78370ed24cdcdb Mon Sep 17 00:00:00 2001 From: Pavel Vinogradov Date: Sat, 3 Sep 2022 19:02:36 -0400 Subject: [PATCH] libsecurity, libsorcery: adapted for grep 3.8 (egrep -> grep -E) --- var/lib/sorcery/modules/libsecurity | 2 +- var/lib/sorcery/modules/libsorcery | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/var/lib/sorcery/modules/libsecurity b/var/lib/sorcery/modules/libsecurity index 628172c2..de09b08a 100755 --- a/var/lib/sorcery/modules/libsecurity +++ b/var/lib/sorcery/modules/libsecurity @@ -58,7 +58,7 @@ gaze_checkmd5() { SOURCE="$(ls $SOURCE_CACHE/$SOURCE* 2> /dev/null | cut -d'/' -f 5 | head -n 1)" if [ "$SOURCE" ] then - if [[ -z $(echo ${SOURCE#$OLDSOURCE.} | egrep '^[0-9]{14}$') ]] + if [[ -z $(echo ${SOURCE#$OLDSOURCE.} | grep -E '^[0-9]{14}$') ]] then APPEND="FUZZ s/$OLDSOURCE/$SOURCE/ " else diff --git a/var/lib/sorcery/modules/libsorcery b/var/lib/sorcery/modules/libsorcery index f68d6805..fc5ef969 100755 --- a/var/lib/sorcery/modules/libsorcery +++ b/var/lib/sorcery/modules/libsorcery @@ -883,7 +883,7 @@ unset_details() { TEMP=${TEMP}${i}\\n done # not all SOURCE_* should be deleted (SOURCE_CACHE) - VARS="$VARS $(echo -e $TEMP | egrep "^SOURCE[0-9]*(_URL|_GPG|_IGNORE)?$")" + VARS="$VARS $(echo -e $TEMP | grep -E "^SOURCE[0-9]*(_URL|_GPG|_IGNORE)?$")" unset $VARS } -- 2.45.2