scripts/nightly: better recycle, would falsely read into latest/

This commit is contained in:
Franco Fichtner 2018-03-21 08:02:28 +01:00
parent 5b94de96d7
commit d7dcce0a39

View file

@ -4,7 +4,7 @@
eval "$(make print-LOGSDIR,PRODUCT_VERSION)"
for RECYCLE in $(cd ${LOGSDIR}; find . -type f | sort -r | tail -n +7); do
for RECYCLE in $(cd ${LOGSDIR}; find . -name "[0-9]*" -type f | sort -r | tail -n +7); do
(cd ${LOGSDIR}; rm ${RECYCLE})
done