Allow "slackpkg help" to work after slackpkg is upgraded

Signed-off-by: Robby Workman <rworkman@slackware.com>
This commit is contained in:
JK Wood 2021-07-10 01:57:36 -05:00 committed by Robby Workman
parent 8ef7e17bb4
commit f9f1004bc7

View file

@ -242,7 +242,7 @@ ONE mirror in ${CONF}/mirrors and run:\n\n\
\t# slackpkg update\n\n\ \t# slackpkg update\n\n\
You can see more information about slackpkg functions in slackpkg manpage." You can see more information about slackpkg functions in slackpkg manpage."
cleanup cleanup
elif [ "$CMD" != "new-config" ]; then elif [ "$CMD" != "new-config" ] && [ "$CMD" != "help" ]; then
echo -e "\ echo -e "\
\nThe package list is missing.\n\ \nThe package list is missing.\n\
Before you install|upgrade|reinstall anything you need to run:\n\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 ] && \ elif ! [ -f ${WORKDIR}/CHECKSUMS.md5 ] && \
[ "$CMD" != "update" ] && \ [ "$CMD" != "update" ] && \
[ "$CMD" != "new-config" ] && \ [ "$CMD" != "new-config" ] && \
[ "$CMD" != "help" ] && \
[ "$CHECKMD5" = "on" ]; then [ "$CHECKMD5" = "on" ]; then
echo -e "\n\ echo -e "\n\
No CHECKSUMS.md5 found! Please disable md5sums checking\n\ No CHECKSUMS.md5 found! Please disable md5sums checking\n\