From 93ea7952c1eaf5a99d12cda55ef3cf512d25e81d Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 16 Dec 2012 16:41:27 +0100 Subject: be more explizit --- bin/housekeeping.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/housekeeping.sh b/bin/housekeeping.sh index beb809df..fb1db6b3 100755 --- a/bin/housekeeping.sh +++ b/bin/housekeeping.sh @@ -10,7 +10,7 @@ export LC_ALL=C set -e check_for_mounted_chroots() { - CHROOT_PATTERN="/chroots/$1-*" + CHROOT_PATTERN="/chroots/${1}-*" OUTPUT=$(ls $CHROOT_PATTERN 2>/dev/null) if [ "$OUTPUT" != "" ] ; then figlet "Warning:" @@ -27,7 +27,7 @@ check_for_mounted_chroots() { } report_disk_usage() { - du -schx /var/lib/jenkins/jobs/${1}_* |grep total |sed -s "s#total#$1 jobs#" + du -schx /var/lib/jenkins/jobs/${1}_* |grep total |sed -s "s#total#${1} jobs#" # FIXME: if $2 is given check, that disk usage is below $2 GB - same for report_filetype_usage() } -- cgit v1.2.3-70-g09d2