diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-08-23 22:10:41 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-08-23 22:10:41 (EDT) |
commit | 65762290fd7df88271951aa3efb12d469fe998e2 (patch) | |
tree | 8de0d6c4dfea490717168b6c2993969a92af382e /src | |
parent | 18ad5610e4888ee1114ae9c002834fd47cb0ff94 (diff) |
prokit: Don't require uid 0 for help and version
Diffstat (limited to 'src')
-rw-r--r-- | src/prokit.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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 ${?} |