From 31d899e6c14d658569d70f6fe62a0fbe1f750fa9 Mon Sep 17 00:00:00 2001 From: Marco Amadori Date: Tue, 16 Sep 2008 17:12:00 +0200 Subject: [PATCH] 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. --- bin/live-snapshot | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.1.4