diff options
author | Holger Levsen <holger@layer-acht.org> | 2012-12-16 16:41:27 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2012-12-16 16:41:27 +0100 |
commit | 93ea7952c1eaf5a99d12cda55ef3cf512d25e81d (patch) | |
tree | 0d6044bb6a4d741bb02c485a00f53110e3410e84 | |
parent | 2b19074df6f82d299dbd56190f61c414266d53ed (diff) | |
download | jenkins.debian.net-93ea7952c1eaf5a99d12cda55ef3cf512d25e81d.tar.xz |
be more explizit
-rwxr-xr-x | bin/housekeeping.sh | 4 |
1 files 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() } |