egrep reported as obsolete by opensuse-tumbleweed builds

This commit is contained in:
Tim Wojtulewicz 2022-10-27 11:34:22 -07:00
parent a96b7e6563
commit d442ea1bb9
10 changed files with 17 additions and 18 deletions

View file

@ -20,8 +20,8 @@ if [ $# -ne 2 ]; then
exit 1
fi
all_loads=$(egrep "#[[:space:]]*@load.*" $1 | sed 's/#[[:space:]]*@load[[:space:]]*//g')
zeekygen_loads=$(egrep "@load.*" $2 | sed 's/@load[[:space:]]*//g')
all_loads=$(grep -E "#[[:space:]]*@load.*" $1 | sed 's/#[[:space:]]*@load[[:space:]]*//g')
zeekygen_loads=$(grep -E "@load.*" $2 | sed 's/@load[[:space:]]*//g')
for f in $all_loads; do
echo "$zeekygen_loads" | grep -q $f || error_msg "$f not loaded in zeekygen/__load__.zeek"