summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorJK Wood <joshuakwood@gmail.com>2021-07-10 01:57:36 -0500
committerRobby Workman <rworkman@slackware.com>2021-07-11 02:53:04 -0500
commitf9f1004bc7aacbb7456678e652a3ebefbd4a4a8c (patch)
tree3683baaaeb3c1341697649b1ff4cd6410b863bc4 /files
parent8ef7e17bb4c3ad9bae7603b2a06339498e57af86 (diff)
downloadslackpkg-f9f1004bc7aacbb7456678e652a3ebefbd4a4a8c.tar.xz
Allow "slackpkg help" to work after slackpkg is upgraded
Signed-off-by: Robby Workman <rworkman@slackware.com>
Diffstat (limited to 'files')
-rw-r--r--files/core-functions.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/core-functions.sh b/files/core-functions.sh
index ea38f29..1a50627 100644
--- a/files/core-functions.sh
+++ b/files/core-functions.sh
@@ -242,7 +242,7 @@ ONE mirror in ${CONF}/mirrors and run:\n\n\
\t# slackpkg update\n\n\
You can see more information about slackpkg functions in slackpkg manpage."
cleanup
- elif [ "$CMD" != "new-config" ]; then
+ elif [ "$CMD" != "new-config" ] && [ "$CMD" != "help" ]; then
echo -e "\
\nThe package list is missing.\n\
Before you install|upgrade|reinstall anything you need to run:\n\n\
@@ -347,6 +347,7 @@ use slackpkg.\n"
elif ! [ -f ${WORKDIR}/CHECKSUMS.md5 ] && \
[ "$CMD" != "update" ] && \
[ "$CMD" != "new-config" ] && \
+ [ "$CMD" != "help" ] && \
[ "$CHECKMD5" = "on" ]; then
echo -e "\n\
No CHECKSUMS.md5 found! Please disable md5sums checking\n\