Remove spaces in awk.

This commit is contained in:
Dave Woodfall 2021-02-20 04:14:57 +00:00 committed by Robby Workman
parent 07df0b6304
commit 7faebfbdb1

View file

@ -609,13 +609,14 @@ function mkregex_blacklist() {
# Filter server and local package lists through blacklist # Filter server and local package lists through blacklist
( cat ${WORKDIR}/pkglist ( cat ${WORKDIR}/pkglist
printf "%s\n" $ROOT/var/log/packages/* | printf "%s\n" $ROOT/var/log/packages/* |
awk -f $ROOT/usr/libexec/slackpkg/pkglist.awk awk -f /usr/libexec/slackpkg/pkglist.awk
) | grep -E -f ${TMPDIR}/blacklist.tmp | ) | grep -E -f ${TMPDIR}/blacklist.tmp |
awk '{print " "$2" "}' | sed -E "s,[+],\\\+,g" | awk '{print $2}' | sed -E "s,[+],\\\+,g" |
sort -u > ${TMPDIR}/blacklist sort -u > ${TMPDIR}/blacklist
} }
# Blacklist filter # Blacklist filter
#
function applyblacklist() { function applyblacklist() {
grep -vE -f ${TMPDIR}/blacklist grep -vE -f ${TMPDIR}/blacklist
} }
@ -1248,7 +1249,7 @@ function sanity_check() {
if [ "$FILES" != "" ]; then if [ "$FILES" != "" ]; then
for i in $FILES ; do for i in $FILES ; do
echo "${i}" | applyblacklist 1> /dev/null || continue echo "${i}" | grep -qE -f ${TMPDIR}/blacklist && continue
DOUBLEFILES="$DOUBLEFILES $i" DOUBLEFILES="$DOUBLEFILES $i"
done done
unset FILES unset FILES