From 0243d098db2a1bfa4ac068a77089b7670d29ec79 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 16 Dec 2012 16:45:39 +0100 Subject: fixup check_for_mounted_chroots --- bin/housekeeping.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/housekeeping.sh') diff --git a/bin/housekeeping.sh b/bin/housekeeping.sh index fb1db6b3..87bf204b 100755 --- a/bin/housekeeping.sh +++ b/bin/housekeeping.sh @@ -11,8 +11,8 @@ set -e check_for_mounted_chroots() { CHROOT_PATTERN="/chroots/${1}-*" - OUTPUT=$(ls $CHROOT_PATTERN 2>/dev/null) - if [ "$OUTPUT" != "" ] ; then + OUTPUT=$(ls $CHROOT_PATTERN 2>/dev/null) || true + if [ ! -z $OUTPUT ] ; then figlet "Warning:" echo echo "Probably manual cleanup needed:" -- cgit v1.2.3-70-g09d2