[update-cron] Grab exit code correctly

This commit is contained in:
Starbeamrainbowlabs 2019-08-09 23:50:17 +01:00
parent dcb3334d0b
commit dee41dc775
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

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