Commit 9a931cf7 authored by Holger Levsen's avatar Holger Levsen

reproducible Archlinux: use sudo to cleanup

Signed-off-by: Holger Levsen's avatarHolger Levsen <>
parent 525d37ee
......@@ -96,7 +96,7 @@ OLDSTUFF=$(find /tmp -maxdepth 1 -type d -mtime +2 -regextype egrep -regex '/tmp
if [ ! -z "$OLDSTUFF" ] ; then
echo "Old temp directories found in /tmp"
find /tmp -maxdepth 1 -type d -mtime +2 -regextype egrep -regex '/tmp/(tmp.*|Test.*|usession-release.*|.*test.*)' -exec rm -rv --one-file-system {} \; || true
find /tmp -maxdepth 1 -type d -mtime +2 -regextype egrep -regex '/tmp/(tmp.*|Test.*|usession-release.*|.*test.*)' -exec sudo rm -rv --one-file-system {} \; || true
echo "These old directories have been deleted."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment