[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-deployment] branch master updated: no overwrite
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-deployment] branch master updated: no overwrite |
Date: |
Wed, 29 May 2019 20:23:11 +0200 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new e2b8cc3 no overwrite
e2b8cc3 is described below
commit e2b8cc3e3a5728d0bc476f075ade0f099e012815
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed May 29 20:23:05 2019 +0200
no overwrite
---
buildbot/make_auditor_reports.sh | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/buildbot/make_auditor_reports.sh b/buildbot/make_auditor_reports.sh
index 5a06a77..f9ff64d 100755
--- a/buildbot/make_auditor_reports.sh
+++ b/buildbot/make_auditor_reports.sh
@@ -11,7 +11,7 @@ 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="${HOME}/shared-data/auditor/reports"
+REPORTS_DIRECTORY="${HOME}/shared-data/auditor/reports/"
source ${HOME}/activate
@@ -45,11 +45,13 @@ rm "${REPORT_FILE_NOEXT}.tex"
echo Removing "${REPORT_FILE_NOEXT}.log"
rm "${REPORT_FILE_NOEXT}.log"
-# Keep the log around.
-# 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."
+ exit 0
+fi
+
mv "${REPORT_FILE_NOEXT}.pdf" "${REPORTS_DIRECTORY}"
-chmod g+rw "${REPORTS_DIRECTORY}/${REPORT_FILE_NOEXT}.pdf"
-echo "The file ${REPORTS_DIRECTORY}/${REPORT_FILE_NOEXT}.pdf" \
- "has been correctly generated."
+echo Report moved in "${REPORTS_DIRECTORY}".
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-deployment] branch master updated: no overwrite,
gnunet <=