change find args

This commit is contained in:
ander 2021-11-02 11:33:57 +02:00
parent 4ddbf1e411
commit 50186d13c9
No known key found for this signature in database
GPG key ID: 0A2971E562D618F3

View file

@ -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