From f87bf1bf682af0825aab802cefc7d9449bb48686 Mon Sep 17 00:00:00 2001 From: Dave Woodfall Date: Thu, 11 Feb 2021 17:00:14 -0600 Subject: Use ERE for sanity_check() function Signed-off-by: Robby Workman --- files/core-functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'files') diff --git a/files/core-functions.sh b/files/core-functions.sh index 9816458..e29da44 100644 --- a/files/core-functions.sh +++ b/files/core-functions.sh @@ -1219,9 +1219,10 @@ function sanity_check() { batchcutpkg | sort > $TMPDIR/list1 cat $TMPDIR/list1 | uniq > $TMPDIR/list2 FILES="$(diff $TMPDIR/list1 $TMPDIR/list2 | grep '<' | cut -f2 -d\ )" + if [ "$FILES" != "" ]; then for i in $FILES ; do - grep -qx "${i}" ${CONF}/blacklist && continue + echo "${i}" | grep -qE -f ${ROOT}/${CONF}/blacklist && continue DOUBLEFILES="$DOUBLEFILES $i" done unset FILES -- cgit v1.2.3