From 561fb863c769214865b8ba5f86e5e1c374bba609 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 26 Jul 2011 13:51:57 +0200 Subject: [PATCH] Drop "set -e" from the scripts. --- chroot-script | 2 -- grml-debootstrap | 6 ------ 2 files changed, 8 deletions(-) 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 -- 2.1.4