community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1705259 - /comdev/projects.apache.org/scripts/cronjobs/reportingcycles.sh
Date Fri, 25 Sep 2015 09:26:35 GMT
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/



Mime
View raw message