diff options
Diffstat (limited to 'bin/reproducible_maintainance.sh')
-rwxr-xr-x | bin/reproducible_maintainance.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh index b6977601..4bd07e19 100755 --- a/bin/reproducible_maintainance.sh +++ b/bin/reproducible_maintainance.sh @@ -42,6 +42,16 @@ if [ ! -z "$OLDSTUFF" ] ; then echo echo "Warning: old temp directories found in $REP_RESULTS" find $REP_RESULTS -type d -name "tmp.*" -mtime +2 -exec rm -rv {} \; + echo "These old directories have been deleted." + echo + DIRTY=true +fi + +# find old schroots +OLDSTUFF=$(find /schroots/ -type d -name "reproducible*" -mtime +2 -exec ls -lad {} \;) +if [ ! -z "$OLDSTUFF" ] ; then + echo + echo "Warning: old temp directories found in $REP_RESULTS" echo DIRTY=true fi |