чување 9d9896ae9505a9846f3c3c679039af963c6eaece
родитељ ad28a3f85cd9414a5cfa77a9af32f463a648e060
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Thu, 4 Aug 2022 16:12:40 +0200
Allow list and info as non-root
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 1, додавања: 4(+), брисања: 1(-)
diff --git a/mkpk b/mkpk
@@ -16,7 +16,10 @@ error()
}
if [ "$(id -u)" -ne 0 ]; then
- error "You must be root to run ${0##*/}"
+ case "$1" in
+ list|info) ;;
+ *) error "You must be root to run ${0##*/}";;
+ esac
else
case "$1" in
update) ;;