diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-09-13 23:25:37 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-09-13 23:25:37 +0200 |
commit | f37ca005c4ae7e799b267c98e39273f6e4801825 (patch) | |
tree | 7393da7bf30fc36b0eaa8204d6fb7af6df747374 /buildbot/make_auditor_reports.sh | |
parent | 7b7c73bf63fea3622853b142eedaa1b83a96c4d9 (diff) | |
download | deployment-f37ca005c4ae7e799b267c98e39273f6e4801825.tar.gz deployment-f37ca005c4ae7e799b267c98e39273f6e4801825.tar.bz2 deployment-f37ca005c4ae7e799b267c98e39273f6e4801825.zip |
fix unbound variable
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) \ |