mirror of
https://github.com/rworkman/slackpkg
synced 2025-02-02 07:57:52 +01:00
Use ERE for sanity_check() function
Signed-off-by: Robby Workman <rworkman@slackware.com>
This commit is contained in:
parent
d9f835b61a
commit
f87bf1bf68
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue