diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-12-06 18:04:12 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-12-06 18:04:12 +0100 |
commit | 499941dd88b48742ae1c3e398622aa2081259447 (patch) | |
tree | 118b7c404a3d0b5e0d47e2170231e4f574c2db9c /bin | |
parent | b954f426b724b9d4d0dfa4f1a4185882ec6c2bc2 (diff) | |
download | jenkins.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-x | bin/chroot-installation.sh | 2 |
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 |