X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=32f15b263c467f36549482e4320ec6899b3039cc;hp=20a1cb02d681bb5017404d5d36c7a97cfb7c4af9;hb=c96402b843bc4300a45155066a4c379928bf9c5f;hpb=f7fc84f60c591f0c37ec57004c709e05f43dcbba diff --git a/chroot-script b/chroot-script index 20a1cb0..32f15b2 100755 --- a/chroot-script +++ b/chroot-script @@ -226,7 +226,7 @@ kernel() { reconfigure() { if [ -n "$RECONFIGURE" ] ; then for package in $RECONFIGURE ; do - if dpkg --list $package >/dev/null 2>&1 | grep '^ii' ; then + if dpkg --list $package >/dev/null 2>&1 | grep -q '^ii' ; then DEBIAN_FRONTEND=$DEBIAN_FRONTEND dpkg-reconfigure $package || \ echo "Warning: $package does not exist, can not reconfigure it." fi