[update-cron] Grab exit code correctly
This commit is contained in:
parent
dcb3334d0b
commit
dee41dc775
1 changed files with 1 additions and 1 deletions
|
@ -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}";
|
||||
|
|
Loading…
Reference in a new issue