clear with daterake

This commit is contained in:
Q
2025-11-07 20:23:02 +02:00
parent 920e74b97a
commit 99d06a8cba

View File

@@ -21,7 +21,5 @@ ln -sfT q-tools.$version.tar.gz ~/www/static/six9.net/software/q-tools/current.
echo $version > ~/www/static/six9.net/software/q-tools/current.txt echo $version > ~/www/static/six9.net/software/q-tools/current.txt
cd ~/www/static/six9.net/software/q-tools/ cd ~/www/static/six9.net/software/q-tools/
rm -r ~/tmp/q-tools-release-$$ rm -r ~/tmp/q-tools-release-$$
for e in q-tools*; do ls q-tools* | daterake -n 4 --drop | xargs rm -v -f
if [[ $( file-age $e d ) -gt 365 ]]; then rm "$e"; fi;
done
SimpleWebPage SimpleWebPage