From a96e181033b963ea33b53597375598909a128d13 Mon Sep 17 00:00:00 2001 From: Dave Woodfall Date: Wed, 24 Feb 2021 23:14:18 +0000 Subject: Move applyblacklist to end of makelist() Change -E to -F in applyblacklist() Remove '>' prompt in answer() --- files/core-functions.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'files') diff --git a/files/core-functions.sh b/files/core-functions.sh index 5681e08..75f6ae6 100644 --- a/files/core-functions.sh +++ b/files/core-functions.sh @@ -618,7 +618,7 @@ function mkregex_blacklist() { # Blacklist filter # function applyblacklist() { - grep -vE -f ${TMPDIR}/blacklist + grep -vF -f ${TMPDIR}/blacklist } # Function to make install/reinstall/upgrade lists @@ -635,10 +635,9 @@ function makelist() { awk -f /usr/libexec/slackpkg/pkglist.awk > ${TMPDIR}/tmplist else ls -1 $ROOT/var/log/packages/* | - awk -f /usr/libexec/slackpkg/pkglist.awk | - applyblacklist > ${TMPDIR}/tmplist + awk -f /usr/libexec/slackpkg/pkglist.awk > ${TMPDIR}/tmplist fi - cat ${WORKDIR}/pkglist | applyblacklist > ${TMPDIR}/pkglist + cat ${WORKDIR}/pkglist > ${TMPDIR}/pkglist touch ${TMPDIR}/waiting @@ -799,7 +798,7 @@ function makelist() { rm -f $PKGNAMELIST ;; esac - LIST=$(echo -e $LIST | tr \ "\n" | uniq ) + LIST=$( printf "%s\n" $LIST | applyblacklist | sort -u ) rm ${TMPDIR}/waiting @@ -821,7 +820,7 @@ function answer() { ANSWER="$DEFAULT_ANSWER" echo $DEFAULT_ANSWER else - read -p "> " ANSWER + read ANSWER fi } -- cgit v1.2.3