Skip to content

Commit

Permalink
Set -u in live-snapshot only in debug mode.
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
Marco Amadori committed Sep 16, 2008
1 parent bdb01ba commit 8e45aa7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/live-snapshot
Expand Up @@ -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

Expand Down

0 comments on commit 8e45aa7

Please sign in to comment.