From 50346a01d3ce66a08f653da020d37628f3974ef1 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 7 Oct 2014 16:46:44 +0200 Subject: reproducible: fix find command to find outdated html files --- bin/reproducible_stats.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') 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="β" # 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" -- cgit v1.2.3-70-g09d2