chiark / gitweb /
erm, and now with syntax
authorStephen Gran <steve@lobefin.net>
Mon, 6 Jun 2011 07:06:12 +0000 (08:06 +0100)
committerStephen Gran <steve@lobefin.net>
Mon, 6 Jun 2011 07:06:12 +0000 (08:06 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
apt-in-chroot

index 21be495..45c1197 100755 (executable)
@@ -57,7 +57,7 @@ install|remove|purge|build-dep)
        ;;
 esac
 
-if echo "$VALID_CHROOTS" | grep -qFx "$CHROOT"
+if echo "$VALID_CHROOTS" | grep -qFx "$CHROOT"; then
        # valid chroot
        echo "Will run '/usr/sbin/chroot $CHROOT_DIR/$CHROOT apt-get $APTCMD $PACKAGES'"
        /usr/sbin/chroot $CHROOT_DIR/$CHROOT apt-get $APTCMD $PACKAGES