diff options
-rwxr-xr-x | buildbot/make_auditor_reports.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/buildbot/make_auditor_reports.sh b/buildbot/make_auditor_reports.sh index e0e8efa..8258c39 100755 --- a/buildbot/make_auditor_reports.sh +++ b/buildbot/make_auditor_reports.sh @@ -15,6 +15,12 @@ REPORTS_DIRECTORY="${HOME}/shared-data/auditor/reports" source ${HOME}/activate +if test -a ${REPORTS_DIRECTORY}/$(basename "${REPORT_FILE_NOEXT}.pdf"); then + echo "Today's report already compiled!" + rm "${REPORT_FILE_NOEXT}.pdf" + exit 0 +fi + taler-auditor-exchange \ -c ${HOME}/.config/taler.conf \ -m $(taler-config -s exchange -o master_public_key) \ @@ -47,12 +53,6 @@ rm "${REPORT_FILE_NOEXT}.log" chmod g+r "${REPORT_FILE_NOEXT}.pdf" -if test -a ${REPORTS_DIRECTORY}/$(basename "${REPORT_FILE_NOEXT}.pdf"); then - echo "Today's report already compiled." - rm "${REPORT_FILE_NOEXT}.pdf" - exit 0 -fi - mv "${REPORT_FILE_NOEXT}.pdf" "${REPORTS_DIRECTORY}" echo Reports moved in "${REPORTS_DIRECTORY}". |