From 0c8e97f7c63fb3de5037dd762008ba1e8e38c6a5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 29 Jul 2013 21:39:02 -0400 Subject: pro-archman: Fix exit status. --- (limited to 'src') 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() -- cgit v0.9.1