diff options
-rw-r--r-- | src/pro-archman.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pro-archman.sh b/src/pro-archman.sh index 8d07481..6501f0e 100644 --- a/src/pro-archman.sh +++ b/src/pro-archman.sh @@ -82,6 +82,8 @@ use garbage main() { + local status= + load_locale load_cmds @@ -100,15 +102,17 @@ main() if [ "x${opt_cmd}" != 'x' ]; then run_cmd "${opt_cmd}" "${@}" + status=${?} else get_conf run_cmd "${@}" + status=${?} fi update_feeds collect_garbage - return ${?} + return ${status} } get_options() |