Set -u in live-snapshot only in debug mode.
authorMarco Amadori <amadorim@vdavda.com>
Tue, 16 Sep 2008 15:12:00 +0000 (17:12 +0200)
committerMarco Amadori <amadorim@vdavda.com>
Tue, 16 Sep 2008 15:16:40 +0000 (17:16 +0200)
* 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.

Signed-off-by: Marco Amadori <amadorim@vdavda.com>
bin/live-snapshot

index b81a6af..f77541f 100755 (executable)
 ROOTSNAP=""
 HOMESNAP=""
 
-set -eu
+if [ -n "${LIVE_SNAPSHOT_CHECK_UNBOUND}" ]
+then
+       set -eu
+else
+       set -e
+fi
 
 . /usr/share/initramfs-tools/scripts/live-helpers