Fiddle with generate-summary

This commit is contained in:
Starbeamrainbowlabs 2020-03-23 01:41:59 +00:00
parent e738e4092b
commit f2a1d6c503
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -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