From dee41dc775d2777589ff6deff812c7af095255ec Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 9 Aug 2019 23:50:17 +0100 Subject: [PATCH] [update-cron] Grab exit code correctly --- aptosaurus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aptosaurus.sh b/aptosaurus.sh index 31e37ec..9f117e3 100755 --- a/aptosaurus.sh +++ b/aptosaurus.sh @@ -158,7 +158,7 @@ task_update-cron() { set +e; bash ./aptosaurus.sh update | ansi_strip >"${tmpfile}"; - exit_code="${0}"; + exit_code="${?}"; if [[ "${exit_code}" -ne 0 ]]; then cat "${tmpfile}";