mirror of
https://github.com/rworkman/slackpkg
synced 2025-02-02 07:57:52 +01:00
Remove spaces in awk.
This commit is contained in:
parent
07df0b6304
commit
7faebfbdb1
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue