From: Michael Prokop Date: Tue, 26 Jul 2011 11:51:57 +0000 (+0200) Subject: Drop "set -e" from the scripts. X-Git-Tag: v0.47~9 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=561fb863c769214865b8ba5f86e5e1c374bba609;hp=c87dc4ae138c4ad36070bbfa40cb2c848f01ffb2 Drop "set -e" from the scripts. --- diff --git a/chroot-script b/chroot-script index 32f15b2..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 diff --git a/grml-debootstrap b/grml-debootstrap index 5964d55..8bbed71 100755 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -7,8 +7,6 @@ ################################################################################ # http://www.debian.org/releases/stable/i386/index.html.en -set -e # exit on any error - # variables {{{ PN="$(basename $0)" VERSION="$(dpkg --list $PN 2>/dev/null| awk '/^i/ {print $3}')" @@ -499,13 +497,9 @@ if [ $RELEASE = "lenny" ]; then fi ERRORFILE=$(mktemp) -set +e -# TODO: better error handling? yes | mdadm --create "${TARGET}" --level="${RAIDLEVEL}" \ --raid-devices="${NUM_PARTITIONS}" ${METADATA_VERSION} ${SELECTED_PARTITIONS} >/dev/null 2>$ERRORFILE RC=$? -set -e - if [ "$RC" = 0 ] ; then dialog --title "$PN" --msgbox \ "Creating $TARGET was successful." 0 0