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}";