diff options
author | onefang | 2023-05-11 15:55:47 +1000 |
---|---|---|
committer | onefang | 2023-05-11 15:55:47 +1000 |
commit | 052f6164c2c1e2eb961ece4541b37196aa1e74c6 (patch) | |
tree | 3bac40842049ac1b97d02e24cedfc3e741c19e75 /update_apt-panopticon | |
parent | Clean up messes and old results. (diff) | |
download | apt-panopticon-052f6164c2c1e2eb961ece4541b37196aa1e74c6.zip apt-panopticon-052f6164c2c1e2eb961ece4541b37196aa1e74c6.tar.gz apt-panopticon-052f6164c2c1e2eb961ece4541b37196aa1e74c6.tar.bz2 apt-panopticon-052f6164c2c1e2eb961ece4541b37196aa1e74c6.tar.xz |
Clean out old tarballs to.
Diffstat (limited to '')
-rwxr-xr-x | update_apt-panopticon | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/update_apt-panopticon b/update_apt-panopticon index ef4c740..eee53db 100755 --- a/update_apt-panopticon +++ b/update_apt-panopticon | |||
@@ -36,7 +36,8 @@ find results_* -maxdepth 2 ! -name "pkgmaster.devuan.org" -name "*.*" -type d -p | |||
36 | 36 | ||
37 | if [ "z" != "z${KEEPDAYS}" ] ; then | 37 | if [ "z" != "z${KEEPDAYS}" ] ; then |
38 | # Remove old results. | 38 | # Remove old results. |
39 | find . -daystart -maxdepth 2 -name "stamp" -type f ! -mtime $((0 - ${KEEPDAYS})) -printf "%h\0" | xargs -0rt /bin/rm -fr | 39 | find . -daystart -maxdepth 2 -name "stamp" -type f ! -mtime $((0 - ${KEEPDAYS})) -printf "%h\0" | xargs -0rt /bin/rm -fr |
40 | find . -daystart -maxdepth 2 -name "results_*.tar.xz" -type f ! -mtime $((0 - ${KEEPDAYS})) -print0 | xargs -0rt /bin/rm -fr | ||
40 | fi | 41 | fi |
41 | 42 | ||
42 | rm ../results; ln -s apt-panopticon/results_old ../results | 43 | rm ../results; ln -s apt-panopticon/results_old ../results |