diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2019-05-29 20:39:11 +0200 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2019-05-29 20:39:11 +0200 |
commit | 8ea15d758b11defc460b3828543c12f8e24e98b5 (patch) | |
tree | e9045e10b2c88848b36fda68e16e6a61b59487d9 /buildbot | |
parent | afb48481d7d9ce5faf4ee6f9577fce38593685bf (diff) | |
download | deployment-8ea15d758b11defc460b3828543c12f8e24e98b5.tar.gz deployment-8ea15d758b11defc460b3828543c12f8e24e98b5.tar.bz2 deployment-8ea15d758b11defc460b3828543c12f8e24e98b5.zip |
Move override check on top.
Diffstat (limited to 'buildbot')
-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}". |