summaryrefslogtreecommitdiff
path: root/scripts/aggregate.sh
diff options
context:
space:
mode:
authorFredrik Aslund <fredrik.aslund@umu.se>2016-11-04 13:26:00 +0100
committerFredrik Aslund <fredrik.aslund@umu.se>2016-11-04 13:26:00 +0100
commit2517a74602375e2fb8c83efc16c341332bd4f6b8 (patch)
tree894c19e9f574895c11e70ec4876a02169e22238e /scripts/aggregate.sh
parent8fb29ca073ee46dc0afc0bb1c3a6d72c4072d391 (diff)
do not remove xml files if not run
Diffstat (limited to 'scripts/aggregate.sh')
-rwxr-xr-xscripts/aggregate.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/aggregate.sh b/scripts/aggregate.sh
index 685457b8..2981e2fd 100755
--- a/scripts/aggregate.sh
+++ b/scripts/aggregate.sh
@@ -5,8 +5,6 @@ aggregate_interval_min=60
DIR=`pwd`
ODIR=$1
-rm -f $ODIR/*.xml
-
last_aggregate_ts=$ODIR/last_aggregate.ts
if find $last_aggregate_ts -mmin -$aggregate_interval_min 2>/dev/null | grep -q . ; then
@@ -15,6 +13,8 @@ else
touch $last_aggregate_ts
fi
+rm -f $ODIR/*.xml
+
grep -v -e '^#' $ODIR/metadata.lst | grep . | (while read url cert; do
cfile=""
if [ "x$cert" != "x" ]; then