summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-01-17 09:39:28 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-01-17 09:39:28 (EST)
commit3fac031790b2671d98b2f6fa4e01cef9da07a92a (patch)
tree73a5dbdd5ec8538b692080740b32e5594863ee6d /src
parent00b51a0659bc5ac7fb2e5898172f2e4b90a2b104 (diff)
main(): Return run_cmd() exit status
fini_vardata() was shoved in between run_cmd() and return.
Diffstat (limited to 'src')
-rw-r--r--src/main.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.sh b/src/main.sh
index e034104..b77a2f5 100644
--- a/src/main.sh
+++ b/src/main.sh
@@ -40,6 +40,7 @@ fi
main()
{
local cmd=
+ local es=
load_locale
@@ -74,10 +75,11 @@ main()
;;
esac
run_cmd "${cmd}" "${@}"
+ es=${?}
fini_vardata
- return ${?}
+ return ${es}
}
check_uid()