chiark
/
gitweb
/
~ianmdlvl
/
dsa-metapackages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4972b43
)
make apt-in-chroot work with dash
author
Stephen Gran
<steve@lobefin.net>
Sun, 5 Jun 2011 19:14:53 +0000
(20:14 +0100)
committer
Stephen Gran
<steve@lobefin.net>
Sun, 5 Jun 2011 19:14:53 +0000
(20:14 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
apt-in-chroot
patch
|
blob
|
history
diff --git
a/apt-in-chroot
b/apt-in-chroot
index 4e0028a6748bf5d09bd90f3f2ae1bea4269e34eb..21be495632c0fe00414b5f26ec657f2e799740b9 100755
(executable)
--- 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