From 499941dd88b48742ae1c3e398622aa2081259447 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 6 Dec 2014 18:04:12 +0100 Subject: chroot-installation: prepare_install_binary_packages() replace grep+sed with sed, thanks Bernhard R. Link --- bin/chroot-installation.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh index ffb2fa9c..4951f326 100755 --- a/bin/chroot-installation.sh +++ b/bin/chroot-installation.sh @@ -75,7 +75,7 @@ set -x apt-get install -y dctrl-tools PACKAGES="" for PKG in $@ ; do - PACKAGES="\$PACKAGES \$(grep-dctrl -S \$PKG /var/lib/apt/lists/*Packages | grep ^Package: | sed -s "s#Package: ##g" | xargs -r echo)" + PACKAGES="\$PACKAGES \$(grep-dctrl -S \$PKG /var/lib/apt/lists/*Packages | sed -n -e "s#^Package: ##p" | xargs -r echo)" done apt-get install -y \$PACKAGES apt-get clean -- cgit v1.2.3-70-g09d2