summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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