From 65762290fd7df88271951aa3efb12d469fe998e2 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 23 Aug 2014 22:10:41 -0400 Subject: prokit: Don't require uid 0 for help and version --- diff --git a/src/prokit.sh b/src/prokit.sh index 91e76c8..8a82e26 100644 --- a/src/prokit.sh +++ b/src/prokit.sh @@ -83,9 +83,12 @@ main() else cmd="${1}" shift - check_uid || error 1 "$(get_msg 'uid_0_req')" fi + case "${cmd}" in + 'help'|'version') ;; + *) check_uid || error 1 "$(get_msg 'uid_0_req')";; + esac run_cmd "${cmd}" "${@}" return ${?} -- cgit v0.9.1