X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=chroot-script;h=7206de9de90faf05b0af5f6ed1ba1910f31d888b;hb=561fb863c769214865b8ba5f86e5e1c374bba609;hp=20a1cb02d681bb5017404d5d36c7a97cfb7c4af9;hpb=f7fc84f60c591f0c37ec57004c709e05f43dcbba;p=grml-debootstrap.git diff --git a/chroot-script b/chroot-script index 20a1cb0..7206de9 100755 --- a/chroot-script +++ b/chroot-script @@ -6,8 +6,6 @@ # License: This file is licensed under the GPL v2. ################################################################################ -set -e # exit on any error - . /etc/debootstrap/config || exit 1 . /etc/debootstrap/variables || exit 1 @@ -226,7 +224,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