From: Marco Amadori Date: Tue, 16 Sep 2008 15:12:00 +0000 (+0200) Subject: Set -u in live-snapshot only in debug mode. X-Git-Tag: debian/2.0.15-1~427 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;h=31d899e6c14d658569d70f6fe62a0fbe1f750fa9;hp=e44b1421fb3fcfac5097f946a7b40863dd60a364;p=live-boot-grml.git Set -u in live-snapshot only in debug mode. * Although is really fine to have checks for unboud variables, this limits also included code, where unbound variables could be used as feature. Set LIVE_SNAPSHOT_CHECK_UNBOUND to have it on again in your test runs. --- diff --git a/bin/live-snapshot b/bin/live-snapshot index b81a6af..f77541f 100755 --- a/bin/live-snapshot +++ b/bin/live-snapshot @@ -30,7 +30,12 @@ ROOTSNAP="" HOMESNAP="" -set -eu +if [ -n "${LIVE_SNAPSHOT_CHECK_UNBOUND}" ] +then + set -eu +else + set -e +fi . /usr/share/initramfs-tools/scripts/live-helpers