summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-20 02:50:23 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-20 02:50:23 +0200
commit733ae2fcb04a0e84cee6edbd7a7c565410b44c0f (patch)
tree1438a489f4e74e97016280828b37cd3a3f6037a1
parent235ec73ab1126ca9afcebb4ada6faf20e2c73911 (diff)
downloadjenkins.debian.net-733ae2fcb04a0e84cee6edbd7a7c565410b44c0f.tar.xz
reproducible: when using find -mtime, read the entry for -atime in man find
-rwxr-xr-xbin/reproducible_html_graphs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_html_graphs.sh b/bin/reproducible_html_graphs.sh
index d39d5a7c..736d6c7c 100755
--- a/bin/reproducible_html_graphs.sh
+++ b/bin/reproducible_html_graphs.sh
@@ -172,7 +172,7 @@ for i in 0 1 3 ; do
fi
write_page " <a href=\"$JENKINS_URL/userContent/${TABLE[$i]}.png\"><img src=\"$JENKINS_URL/userContent/${TABLE[$i]}.png\" class=\"graph\" alt=\"${MAINLABEL[$i]}\"></a>"
# redo pngs once a day
- if [ ! -f /var/lib/jenkins/userContent/${TABLE[$i]}.png ] || [ -z $(find /var/lib/jenkins/userContent -maxdepth 1 -mtime -1 -name ${TABLE[$i]}.png) ] ; then
+ if [ ! -f /var/lib/jenkins/userContent/${TABLE[$i]}.png ] || [ -z $(find /var/lib/jenkins/userContent -maxdepth 1 -mtime +0 -name ${TABLE[$i]}.png) ] ; then
redo_png
fi
done