Replace fgrep and egrep with grep -F/-E

GNU Grep 3.8 reports the following warnings:

    egrep: warning: egrep is obsolescent; using grep -E
    fgrep: warning: fgrep is obsolescent; using grep -F
This commit is contained in:
Michal Nowak
2022-09-16 12:13:52 +02:00
committed by Ondřej Surý
parent 65e91ef5e6
commit 212c4de043
13 changed files with 27 additions and 27 deletions

View File

@@ -91,7 +91,7 @@ echo_i "checking that standby KSK did not sign but is delegated ($n)"
ret=0
grep " $rolling"'$' sigs > /dev/null && ret=1
grep " $rolling"'$' keys > /dev/null || ret=1
egrep "DS[ ]*$rolling[ ]" ${pfile}.signed > /dev/null || ret=1
grep -E "DS[ ]*$rolling[ ]" ${pfile}.signed > /dev/null || ret=1
n=$((n + 1))
if [ $ret != 0 ]; then echo_i "failed"; fi
status=$((status + ret))