summaryrefslogtreecommitdiff
path: root/scripts/update-and-validate.sh
diff options
context:
space:
mode:
authorBjörn Mattsson <bjorn@sunet.se>2023-02-21 13:08:13 +0100
committerBjörn Mattsson <bjorn@sunet.se>2023-02-21 13:08:13 +0100
commita8b8ba7558bc760363c016779b771f9de81aabc9 (patch)
tree981604c996f9890e2f8ffc2124e91f2903af9a35 /scripts/update-and-validate.sh
parent482ba52885c7c35914a2fb4c1c7bdff0de5043a1 (diff)
SWAMID-2669 Added bookstack.sai.kau.se
Diffstat (limited to 'scripts/update-and-validate.sh')
-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