From: Peter Palfrader Date: Mon, 22 Apr 2013 20:59:22 +0000 (+0200) Subject: Escape a [ X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=9e3c88bd49a004306050e3a88254d7f49690a8a4;p=mirror%2Fdsa-puppet.git Escape a [ --- diff --git a/modules/porterbox/files/schroot-dsa/config b/modules/porterbox/files/schroot-dsa/config index c94c6b364..4e176c6cc 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%%_*}" ;; *)