summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-02-16 19:09:07 +0000
committerRobby Workman <rworkman@slackware.com>2021-02-16 22:27:25 -0600
commit0a37c5eee7f8450b81ea8067e14ac55a0c33e901 (patch)
tree1fbf08de9cf74b25ca9c67287faec0a13a4d7762
parentf20d83a658cb66982d41cbb291bce6ca35548bfa (diff)
downloadslackpkg-0a37c5eee7f8450b81ea8067e14ac55a0c33e901.tar.xz
Escape plus signs in blacklist regex
Signed-off-by: Robby Workman <rworkman@slackware.com>
-rw-r--r--files/core-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/core-functions.sh b/files/core-functions.sh
index 7289114..1f3439c 100644
--- a/files/core-functions.sh
+++ b/files/core-functions.sh
@@ -600,7 +600,7 @@ function mkregex_blacklist() {
# create second blacklist of single packages from tmp list
grep -E -f ${TMPDIR}/blacklist.tmp ${WORKDIR}/pkglist |
- awk '{print " "$2" "}' > ${TMPDIR}/blacklist
+ awk '{print " "$2" "}' | sed -E "s,[+],\\\+,g" > ${TMPDIR}/blacklist
# remove sets from tmp blacklist, join both lists to create unique list
sed -E "/\.\/$PKGMAIN\/[[:alpha:]]+/d" ${TMPDIR}/blacklist.tmp |