You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/09/25 11:26:35 UTC

svn commit: r1705259 - /comdev/projects.apache.org/scripts/cronjobs/reportingcycles.sh

Author: sebb
Date: Fri Sep 25 09:26:35 2015
New Revision: 1705259

URL: http://svn.apache.org/viewvc?rev=1705259&view=rev
Log:
Ensure we cannot overwrite target with stale data

Modified:
    comdev/projects.apache.org/scripts/cronjobs/reportingcycles.sh

Modified: comdev/projects.apache.org/scripts/cronjobs/reportingcycles.sh
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/reportingcycles.sh?rev=1705259&r1=1705258&r2=1705259&view=diff
==============================================================================
--- comdev/projects.apache.org/scripts/cronjobs/reportingcycles.sh (original)
+++ comdev/projects.apache.org/scripts/cronjobs/reportingcycles.sh Fri Sep 25 09:26:35 2015
@@ -1,6 +1,8 @@
 # Create the reporting cycles file and copy it to reporter.a.o
 
-python3 reportingcycles.py
+rm -f ../../data/cache/reportingcycles.json
+
+python3 reportingcycles.py || exit
 
 echo copying ../../data/cache/reportingcycles.json  to ../../../reporter.apache.org/
 cp ../../data/cache/reportingcycles.json ../../../reporter.apache.org/site/