Fiddle with generate-summary
This commit is contained in:
parent
e738e4092b
commit
f2a1d6c503
1 changed files with 7 additions and 1 deletions
|
@ -158,6 +158,8 @@ task_metafiles() {
|
|||
task_begin "Signing release file";
|
||||
execute gpg --yes -abs -u "${gpg_key_id}" -o Release.gpg Release
|
||||
task_end $?;
|
||||
|
||||
tasks_run generate-summary;
|
||||
}
|
||||
|
||||
# Spits out a TSV record with 3 columns:
|
||||
|
@ -176,16 +178,20 @@ _generate_summary() {
|
|||
}
|
||||
|
||||
task_generate-summary() {
|
||||
task_begin "Regenerating SUMMARY.txt";
|
||||
_generate_summary >"${dir_repo}/SUMMARY.txt";
|
||||
task_end "$?";
|
||||
}
|
||||
|
||||
task_update-cron() {
|
||||
tmpfile="$(mktemp --suffix ".aptosaurus.log")";
|
||||
|
||||
set +e;
|
||||
set +e; # Allow errors - we're handling them explicitly here
|
||||
# Save the output.....
|
||||
bash ./aptosaurus.sh update | ansi_strip >"${tmpfile}";
|
||||
exit_code="${?}";
|
||||
|
||||
# ....but only display it if something went wrong
|
||||
if [[ "${exit_code}" -ne 0 ]]; then
|
||||
cat "${tmpfile}";
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue