summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-03-31 14:42:04 +0000
committerDave Woodfall <dave@slackbuilds.org>2021-03-31 14:42:04 +0000
commita1dd8f3f53eb559b9d5e3bc6e92121664c8abc5d (patch)
treebda8be743369a46caa41623f18940ae9ea857862
parent3d99ab68d36a5e0fedd55f161392e45a30247849 (diff)
downloadslackpkg-a1dd8f3f53eb559b9d5e3bc6e92121664c8abc5d.tar.xz
Add show-changelog & help to non-root commands
-rw-r--r--files/core-functions.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/files/core-functions.sh b/files/core-functions.sh
index e9e3ed6..1e7dfb4 100644
--- a/files/core-functions.sh
+++ b/files/core-functions.sh
@@ -327,6 +327,8 @@ to the closest mirror and is very slow.\n"
[ "$CMD" != "search" ] && \
[ "$CMD" != "file-search" ] && \
[ "$CMD" != "check-updates" ] && \
+ [ "$CMD" != "show-changelog" ] && \
+ [ "$CMD" != "help" ] && \
[ "$CMD" != "info" ]; then
echo -e "\n\
Only root can install, upgrade, or remove packages.\n\