tests: replace egrep -> grep -E

"egrep" is an obsolete alias for grep -E and newer greps will warn on usage
of egrep, so let's just swap it out.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-05-15 01:37:11 +00:00
committed by Serge Hallyn
parent 48ceff86de
commit 29309f5913
4 changed files with 9 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ save()
done
DATE=$(date '+%s')
DATE=$(( DATE/3600/24 ))
WARN=$( egrep "^PASS_WARN_AGE" /etc/login.defs | { read var val ; echo $val; } )
WARN=$( grep -E "^PASS_WARN_AGE" /etc/login.defs | { read var val ; echo $val; } )
saveifs=$IFS
IFS=":"
cat data/2/shadow |