Skip to content
Snippets Groups Projects
Commit e9cb00e8 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Arch Linux: cleanup leftovers in /tmp/archlinux-ci/ after 3 days

parent 05d3c235
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,21 @@ if [ -n "$OLDSTUFF" ] ; then
DIRTY=true
fi
#
# delete leftovers in /tmp/archlinux-ci/
#
echo "$(date -u) - Deleting leftovers in /tmp/archlinux-ci/, older than 3 days."
OLDSTUFF=$(find /tmp/archlinux-ci/* -maxdepth 0 -mtime +2 -exec ls -lad {} \; || true)
if [ -n "$OLDSTUFF" ] ; then
echo
echo "Leftovers found in /tmp/archlinux-ci/"
find /tmp/archlinux-ci/* -maxdepth 0 -mtime +2 -exec sudo rm -rf --one-file-system {} \; || true
echo "These old leftovers have been deleted."
echo
DIRTY=true
fi
#
# delete old pbuilder build directories
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment