From 8ea15d758b11defc460b3828543c12f8e24e98b5 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Wed, 29 May 2019 20:39:11 +0200 Subject: Move override check on top. --- buildbot/make_auditor_reports.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'buildbot') 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}". -- cgit v1.2.3