From 733ae2fcb04a0e84cee6edbd7a7c565410b44c0f Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 20 Oct 2014 02:50:23 +0200 Subject: reproducible: when using find -mtime, read the entry for -atime in man find --- bin/reproducible_html_graphs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') 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 " \"${MAINLABEL[$i]}\"" # 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 -- cgit v1.2.3-70-g09d2