From 9e1d2f8fa8b27986c5eee209704acb98003dd1dd Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sun, 5 Jun 2011 20:14:53 +0100 Subject: [PATCH] make apt-in-chroot work with dash Signed-off-by: Stephen Gran --- apt-in-chroot | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 -- 2.30.2