From 50186d13c9f8b23a66fe3e1a131ae77704e2e18f Mon Sep 17 00:00:00 2001 From: Ander Punnar Date: Tue, 2 Nov 2021 11:33:57 +0200 Subject: [PATCH] change find args --- cdist/conf/type/__package_apt/explorer/index | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/conf/type/__package_apt/explorer/index b/cdist/conf/type/__package_apt/explorer/index index 58215eff..af18d503 100644 --- a/cdist/conf/type/__package_apt/explorer/index +++ b/cdist/conf/type/__package_apt/explorer/index @@ -1,7 +1,7 @@ #!/bin/sh -e if [ ! -d /var/lib/apt/lists ] \ - || [ -n "$( find /etc/apt -mindepth 1 -cnewer /var/lib/apt/lists )" ] \ + || [ -n "$( find /etc/apt -newer /var/lib/apt/lists )" ] \ || [ ! -f /var/cache/apt/pkgcache.bin ] \ || [ "$( stat --format %Y /var/cache/apt/pkgcache.bin )" -lt "$( date +%s -d '-1 day' )" ] then