From 026679061cd46b4107bced26734f569b2d448e10 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 24 Feb 2012 11:08:33 +0100 Subject: [PATCH] Also accept empty/no suffix in chroot name --- apt-in-chroot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt-in-chroot b/apt-in-chroot index ed052a3..cdf8395 100755 --- a/apt-in-chroot +++ b/apt-in-chroot @@ -58,7 +58,7 @@ if [ -x /usr/bin/dchroot ] ; then elif [ -x /usr/bin/schroot ] ; then chroots=$(schroot -l | awk -F":" '{print $2}' | grep -- '-dchroot$' ) method=schroot - suffix="-dchroot" + suffix[${#suffix[*]}]="" suffix[${#suffix[*]}]="-dchroot" suffix[${#suffix[*]}]="-$(dpkg --print-architecture)-dchroot" else -- 2.30.2