From: Stephen Gran Date: Sun, 5 Jun 2011 19:14:53 +0000 (+0100) Subject: make apt-in-chroot work with dash X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=9e1d2f8fa8b27986c5eee209704acb98003dd1dd;p=dsa-metapackages.git make apt-in-chroot work with dash Signed-off-by: Stephen Gran --- diff --git a/apt-in-chroot b/apt-in-chroot index 4e0028a..21be495 100755 --- a/apt-in-chroot +++ b/apt-in-chroot @@ -57,11 +57,7 @@ install|remove|purge|build-dep) ;; esac -grep -qFx $CHROOT <<< "$VALID_CHROOTS" - -RET=$? - -if [ "$RET" == "0" ]; then +if echo "$VALID_CHROOTS" | grep -qFx "$CHROOT" # 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