From 9e3c88bd49a004306050e3a88254d7f49690a8a4 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 22 Apr 2013 22:59:22 +0200 Subject: [PATCH] Escape a [ --- modules/porterbox/files/schroot-dsa/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/porterbox/files/schroot-dsa/config b/modules/porterbox/files/schroot-dsa/config index c94c6b36..4e176c6c 100644 --- a/modules/porterbox/files/schroot-dsa/config +++ b/modules/porterbox/files/schroot-dsa/config @@ -11,14 +11,14 @@ if [ "$CHROOT_SESSION_PURGE" = "true" ]; then case $CHROOT_DESCRIPTION in "["*-*_*-dchroot"]"*) - chroot_type="$CHROOT_DESCRIPTION"; chroot_type="${chroot_type#[}"; chroot_type="${chroot_type%%]*}" + chroot_type="$CHROOT_DESCRIPTION"; chroot_type="${chroot_type#\[}"; chroot_type="${chroot_type%%]*}" suitevariant_arch_tuple="${chroot_type%%-dchroot-*}" suitevariant=${suitevariant_arch_tuple%_*} SUITE_BASE=${suitevariant%-*} SUITE_VARIANT=${suitevariant##*-} ;; "["*_*-dchroot"]"*) - chroot_type="$CHROOT_DESCRIPTION"; chroot_type="${chroot_type#[}"; chroot_type="${chroot_type%%]*}" + chroot_type="$CHROOT_DESCRIPTION"; chroot_type="${chroot_type#\[}"; chroot_type="${chroot_type%%]*}" SUITE_BASE="${chroot_type%%_*}" ;; *) -- 2.39.2