X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=7206de9de90faf05b0af5f6ed1ba1910f31d888b;hp=20a1cb02d681bb5017404d5d36c7a97cfb7c4af9;hb=95037fa5039580eb081bf568b479d04d1df58786;hpb=f7fc84f60c591f0c37ec57004c709e05f43dcbba 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