summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-and-validate.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/update-and-validate.sh b/scripts/update-and-validate.sh
index 07057918..a4a1bddb 100755
--- a/scripts/update-and-validate.sh
+++ b/scripts/update-and-validate.sh
@@ -15,8 +15,8 @@ update()
rm /tmp/$$.xml /tmp/$$.time
# remove some flag-files to get DB refreshed
- if [ $(find .time/ -ctime +15 | wc -l) -ne 0 ]; then
- rm `find .time/ -ctime +15 | tail -10`
+ if [ $(find .time/ -ctime +15 -type f | wc -l) -ne 0 ]; then
+ rm `find .time/ -ctime +15 -type f | tail -10`
fi
# Update/Import "new" xml-files