diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-20 02:50:23 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-20 02:50:23 +0200 |
commit | 733ae2fcb04a0e84cee6edbd7a7c565410b44c0f (patch) | |
tree | 1438a489f4e74e97016280828b37cd3a3f6037a1 | |
parent | 235ec73ab1126ca9afcebb4ada6faf20e2c73911 (diff) | |
download | jenkins.debian.net-733ae2fcb04a0e84cee6edbd7a7c565410b44c0f.tar.xz |
reproducible: when using find -mtime, read the entry for -atime in man find
-rwxr-xr-x | bin/reproducible_html_graphs.sh | 2 |
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 |