projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e44b142
)
Set -u in live-snapshot only in debug mode.
author
Marco Amadori
<amadorim@vdavda.com>
Tue, 16 Sep 2008 15:12:00 +0000
(17:12 +0200)
committer
Daniel Baumann
<daniel@debian.org>
Wed, 9 Mar 2011 16:48:02 +0000
(17:48 +0100)
* 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
patch
|
blob
|
history
diff --git
a/bin/live-snapshot
b/bin/live-snapshot
index
b81a6af
..
f77541f
100755
(executable)
--- 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