[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
1 changed files with 1 additions and 1 deletions

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