]> git.donarmstrong.com Git - dsa-puppet.git/commitdiff
Escape a [
authorPeter Palfrader <peter@palfrader.org>
Mon, 22 Apr 2013 20:59:22 +0000 (22:59 +0200)
committerPeter Palfrader <peter@palfrader.org>
Mon, 22 Apr 2013 20:59:22 +0000 (22:59 +0200)
modules/porterbox/files/schroot-dsa/config

index c94c6b3640e52d54a17fb5c11574fe1cc76232f0..4e176c6cc6beffb65a6af482957b8a55a4a63811 100644 (file)
 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%%_*}"
         ;;
         *)