From 17b4d500164f285273c353c55e86850dd8a5998c Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Wed, 7 Apr 2010 07:00:41 +0200 Subject: update-initramfs: Use nounset better catch errors early.. Signed-off-by: maximilian attems --- update-initramfs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update-initramfs') 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 -- cgit v1.2.3