summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2010-04-07 07:00:41 +0200
committermaximilian attems <maks@debian.org>2010-04-07 07:01:35 +0200
commit17b4d500164f285273c353c55e86850dd8a5998c (patch)
tree118a2678f8c52c1f2ee6c709ceb7f9b03c001782 /update-initramfs
parent45bcb8eb48e15dd75faa3eccd8c1cfacc14f8206 (diff)
downloadinitramfs-tools-17b4d500164f285273c353c55e86850dd8a5998c.tar.gz
initramfs-tools-17b4d500164f285273c353c55e86850dd8a5998c.zip
update-initramfs: Use nounset
better catch errors early.. Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'update-initramfs')
-rwxr-xr-xupdate-initramfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-initramfs b/update-initramfs
index 8213e48..94b8971 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -8,12 +8,12 @@ USETRIGGERS=true
mode=""
version=""
-set -e
+set -eu
[ -r ${CONF} ] && . ${CONF}
if $USETRIGGERS \
- && [ x"$DPKG_MAINTSCRIPT_PACKAGE" != x ] \
+ && [ x"${DPKG_MAINTSCRIPT_PACKAGE:-}" != x ] \
&& [ $# = 1 ] \
&& [ x"$1" = x-u ] \
&& dpkg-trigger --check-supported 2>/dev/null