summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_maintainance.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh
index 013ae99d..df62f696 100755
--- a/bin/reproducible_maintainance.sh
+++ b/bin/reproducible_maintainance.sh
@@ -48,12 +48,12 @@ if [ ! -z "$OLDSTUFF" ] ; then
fi
# find old schroots
-OLDSTUFF=$(find /schroots/ -maxdepth 1 -type d -name "reproducible*" -mtime +2 -exec ls -lad {} \;)
+OLDSTUFF=$(find /schroots/ -maxdepth 1 -type d -name "reproducible-*-*" -mtime +2 -exec ls -lad {} \;)
if [ ! -z "$OLDSTUFF" ] ; then
echo
- echo "Warning: old schroots found in /schroots"
+ echo "Warning: old schroots found in /schroots, which have been deleted:"
+ find /schroots/ -maxdepth 1 -type d -name "reproducible-*-*" -mtime +2 -exec rm -rf {} \;
echo "$OLDSTUFF"
- echo "TODO: automatically delete them, please cleanup manually for now..."
echo
DIRTY=true
fi