From 00b51a0659bc5ac7fb2e5898172f2e4b90a2b104 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 17 Jan 2016 09:36:12 -0500 Subject: main(): Switch to non-exiting error() --- (limited to 'src') 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}" "${@}" -- cgit v0.9.1