diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-07 16:46:44 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-07 16:46:44 +0200 |
commit | 50346a01d3ce66a08f653da020d37628f3974ef1 (patch) | |
tree | b46b6197654e768d37bfe60053d8ab4e76c90d2a | |
parent | 7302827f066dd4563c67444f191dc67519c4bda4 (diff) | |
download | jenkins.debian.net-50346a01d3ce66a08f653da020d37628f3974ef1.tar.xz |
reproducible: fix find command to find outdated html files
-rwxr-xr-x | bin/reproducible_stats.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index 8d5c4068..6cce3559 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -86,9 +86,9 @@ link_packages() { if $EXTRA_STAR && [ ! -f "/var/lib/jenkins/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" ] ; then STAR="<font color=\"#333333\" size=\"-1\">β</font>" # used to be a star... fi - NAVI="/var/lib/jenkins/userContent/rb-pkg/${PKG}_navigation.html" # only build $PKG pages if they don't exist or are older than $BUILD_DATE - FILE=$(find ! -newermt "$BUILD_DATE" -name $NAVI) + NAVI="/var/lib/jenkins/userContent/rb-pkg/${PKG}_navigation.html" + FILE=$(find $(dirname $NAVI) -name $(basename $NAVI) ! -newermt "$BUILD_DATE" 2>/dev/null || true) if [ ! -f $NAVI ] || [ "$FILE" != "" ] ; then MAINLINK="" init_navi_frame "$PKG" "$VERSION" "$BUILD_DATE" |