diff options
author | P. J. McDermott <pjm@nac.net> | 2013-07-29 21:39:02 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-07-29 21:39:02 (EDT) |
commit | 0c8e97f7c63fb3de5037dd762008ba1e8e38c6a5 (patch) | |
tree | 57fb0aa6e4389645eda08ebbf34e2fea276cdce6 | |
parent | 7a4ba9f4732b4483ecd749ff8fe5c1fb0c2876cb (diff) |
pro-archman: Fix exit status.
-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() |