summaryrefslogtreecommitdiffstats
path: root/bin/chroot_tester.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2012-11-10 16:58:31 +0100
committerHolger Levsen <holger@layer-acht.org>2012-11-10 16:58:31 +0100
commit0a437f4b532b0ac50fbcf5c01fc7a63c1fa66be9 (patch)
treefa8b09c645b0c5a1360920867d9db0bba6841b9d /bin/chroot_tester.sh
parentcfff41b42af923709ebf7e35d0fce7fe5c32931f (diff)
downloadjenkins.debian.net-0a437f4b532b0ac50fbcf5c01fc7a63c1fa66be9.tar.xz
improve directory handling
Diffstat (limited to 'bin/chroot_tester.sh')
-rwxr-xr-xbin/chroot_tester.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/chroot_tester.sh b/bin/chroot_tester.sh
index eeb0fca4..94ab7de9 100755
--- a/bin/chroot_tester.sh
+++ b/bin/chroot_tester.sh
@@ -37,8 +37,8 @@ export TMPFILE=$(mktemp -u)
export CTMPFILE=$CHROOT_TARGET/$TMPFILE
cleanup_all() {
- # FIXME: test if it starts with /chroots/
- if [ "$CHROOT_TARGET" = "" ] ; then
+ # test if $CHROOT_TARGET starts with /chroots/
+ if [ "${CHROOT_TARGET:0:9}" != "/chroots/" ] ; then
echo "HALP. CHROOT_TARGET = $CHROOT_TARGET"
exit 1
fi