From 3661b23cb90402413b6b87bfbe198495da7dcc63 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 13 May 2015 10:41:32 +0200 Subject: reproducible: explain when there is the need for manual cleanup --- bin/reproducible_maintenance.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bin') diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index 256347d8..45b1e1d5 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -54,6 +54,13 @@ if [ ! -z "$OLDSTUFF" ] ; then echo "Warning: old schroots found in /schroots, which have been deleted:" find /schroots/ -maxdepth 1 -type d -regextype posix-extended -regex "/schroots/reproducible-.*-[0-9]{1,5}" -mtime +2 -exec sudo rm -rf --one-file-system {} \; echo "$OLDSTUFF" + OLDSTUFF=$(find /schroots/ -maxdepth 1 -type d -regextype posix-extended -regex "/schroots/reproducible-.*-[0-9]{1,5}" -mtime +2 -exec ls -lad {} \;) + if [ ! -z "$OLDSTUFF" ] ; then + echo + echo "Warning: Tried, but failed to delete these:" + echo "$OLDSTUFF" + echo "Manual cleanup needed!" + fi echo DIRTY=true fi -- cgit v1.2.3-70-g09d2