summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.sh b/src/main.sh
index dae02d0..e034104 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -66,7 +66,12 @@ main()
case "${cmd}" in
'help'|'version') ;;
- *) check_uid || error 1 "$(get_msg 'uid_0_req')";;
+ *)
+ if ! check_uid; then
+ error "$(get_msg 'uid_0_req')"
+ return 1
+ fi
+ ;;
esac
run_cmd "${cmd}" "${@}"