From d7d94f91ef8e54be08342cd220d9d482a7d2a033 Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 11 May 2023 16:04:37 +1000 Subject: More auto delete tweaks. --- update_apt-panopticon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'update_apt-panopticon') diff --git a/update_apt-panopticon b/update_apt-panopticon index eee53db..dde18a5 100755 --- a/update_apt-panopticon +++ b/update_apt-panopticon @@ -37,7 +37,8 @@ find results_* -maxdepth 2 ! -name "pkgmaster.devuan.org" -name "*.*" -type d -p if [ "z" != "z${KEEPDAYS}" ] ; then # Remove old results. find . -daystart -maxdepth 2 -name "stamp" -type f ! -mtime $((0 - ${KEEPDAYS})) -printf "%h\0" | xargs -0rt /bin/rm -fr - find . -daystart -maxdepth 2 -name "results_*.tar.xz" -type f ! -mtime $((0 - ${KEEPDAYS})) -print0 | xargs -0rt /bin/rm -fr + find . -daystart -maxdepth 2 -name "results_*.tar.xz" -type f ! -mtime $((0 - ${KEEPDAYS})) -print0 | xargs -0rt /bin/rm -f + find . -maxdepth 1 -name "results_*" -type d -empty -print0 | xargs -0rt /bin/rm -fr fi rm ../results; ln -s apt-panopticon/results_old ../results -- cgit v1.1