From f9f1004bc7aacbb7456678e652a3ebefbd4a4a8c Mon Sep 17 00:00:00 2001 From: JK Wood Date: Sat, 10 Jul 2021 01:57:36 -0500 Subject: [PATCH] Allow "slackpkg help" to work after slackpkg is upgraded Signed-off-by: Robby Workman --- files/core-functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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\