diff options
Diffstat (limited to 'buildbot/make_auditor_reports.sh')
-rwxr-xr-x | buildbot/make_auditor_reports.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/buildbot/make_auditor_reports.sh b/buildbot/make_auditor_reports.sh index 53211fd..55954b0 100755 --- a/buildbot/make_auditor_reports.sh +++ b/buildbot/make_auditor_reports.sh @@ -6,10 +6,13 @@ set -eu +source ${HOME}/activate + DATE=$(date +%Y-%m-%d) REPORT_FILE_NOEXT=${HOME}/audit_report.${DATE} WIRE_REPORT_FILE_NOEXT=${HOME}/wire_audit_report.${DATE} JINJA_TEMPLATE="auditor-report.tex.j2" +REPORTS_DIRECTORY=$(taler-config -s auditor -o reports -f) clean_files () { # Remove garbage and set permissions. @@ -23,15 +26,12 @@ clean_files () { rm -f "${REPORT_FILE_NOEXT}.txt" "${WIRE_REPORT_FILE_NOEXT}.txt" } -source ${HOME}/activate if test -a ${REPORTS_DIRECTORY}/$(basename "${REPORT_FILE_NOEXT}.pdf"); then echo "Today's report already compiled!" exit 0 fi -REPORTS_DIRECTORY="$(taler-config -s auditor -o reports -f)" - taler-auditor-exchange \ -c ${HOME}/.config/taler.conf \ -m $(taler-config -s exchange -o master_public_key) \ |