From 97101439b7dfc5f3cb69086e8d84fbc4dcb9777b Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 29 Nov 2012 16:48:28 +0100 Subject: only show by prefix --- bin/housekeeping.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/housekeeping.sh b/bin/housekeeping.sh index 87b73074..481f331e 100755 --- a/bin/housekeeping.sh +++ b/bin/housekeeping.sh @@ -14,7 +14,8 @@ echo df -h echo # FIXME: make this a general and a specific housekeeping job: -for DIR in /var/cache/apt/archives/ /var/spool/squid/ /var/lib/jenkins/jobs/* /var/cache/pbuilder/build/ ; do +JOB_PREFIXES=$(ls /var/lib/jenkins/jobs/* -d | cut -d "_" -f1|sort -u) +for DIR in /var/cache/apt/archives/ /var/spool/squid/ /var/cache/pbuilder/build/ $JOB_PREFIXES ; do sudo du -sh $DIR done echo -- cgit v1.2.3-70-g09d2