From 489b7b3f53d6b19351b932068fa578689d3180b3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 15 Feb 2015 17:54:53 +0100 Subject: reproducible: actually delete old tmp directories --- bin/reproducible_maintainance.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh index 8be802bd..b6977601 100755 --- a/bin/reproducible_maintainance.sh +++ b/bin/reproducible_maintainance.sh @@ -36,13 +36,12 @@ fi # provide copy for external backups cp -v $PACKAGES_DB /var/lib/jenkins/userContent/ -# find and warn about old temp directories +# delete old temp directories OLDSTUFF=$(find $REP_RESULTS -type d -name "tmp.*" -mtime +2 -exec ls -lad {} \;) if [ ! -z "$OLDSTUFF" ] ; then echo echo "Warning: old temp directories found in $REP_RESULTS" - echo "$OLDSTUFF" - echo "Please cleanup manually." + find $REP_RESULTS -type d -name "tmp.*" -mtime +2 -exec rm -rv {} \; echo DIRTY=true fi -- cgit v1.2.3-54-g00ecf