diff options
author | Robby Workman <rworkman@slackware.com> | 2019-01-14 23:17:13 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackware.com> | 2019-01-14 23:17:13 -0600 |
commit | a9c7e7d4c7d40b36965bcf8a45419c2de6d04954 (patch) | |
tree | 6d3785eb73616f54dc9f686361dc003a12049b78 | |
parent | a2f35e31101fdc7a2b1092eca3ea854c81172ada (diff) | |
download | slackpkg-a9c7e7d4c7d40b36965bcf8a45419c2de6d04954.tar.xz |
Fixup blacklist checking and appending when using alt $ROOT
Thanks to dive for the report.
-rw-r--r-- | files/core-functions.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/core-functions.sh b/files/core-functions.sh index 93b11e2..19eebf3 100644 --- a/files/core-functions.sh +++ b/files/core-functions.sh @@ -589,7 +589,7 @@ function makelist() { INPUTLIST=$@ - grep -vE "(^#|^[[:blank:]]*$)" ${CONF}/blacklist | \ + grep -vE "(^#|^[[:blank:]]*$)" ${ROOT}/${CONF}/blacklist | \ sed -E " s,^, , s,$, , @@ -1277,7 +1277,7 @@ Okay - slackpkg won't do anything now, but please, do something to fix it.\n" } function blacklist_pkg() { - echo $SHOWLIST | tr ' ' "\n" >> ${CONF}/blacklist + echo $SHOWLIST | tr ' ' "\n" >> ${ROOT}/${CONF}/blacklist echo -e "\nPackages added to your blacklist.\n\ If you want to remove those packages, edit ${CONF}/blacklist.\n" |