summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-12-06 18:04:12 +0100
committerHolger Levsen <holger@layer-acht.org>2014-12-06 18:04:12 +0100
commit499941dd88b48742ae1c3e398622aa2081259447 (patch)
tree118b7c404a3d0b5e0d47e2170231e4f574c2db9c /bin
parentb954f426b724b9d4d0dfa4f1a4185882ec6c2bc2 (diff)
downloadjenkins.debian.net-499941dd88b48742ae1c3e398622aa2081259447.tar.xz
chroot-installation: prepare_install_binary_packages() replace grep+sed with sed, thanks Bernhard R. Link
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chroot-installation.sh2
1 files changed, 1 insertions, 1 deletions
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