summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2010-06-13 20:46:37 +0200
committermaximilian attems <maks@debian.org>2010-06-13 20:46:37 +0200
commitcc6077aa62a510e6ce3d72c8a195bb33d141f904 (patch)
treeb92bf2f70865ca3f4a72147d03d7660162f76391
parenta8a5ce4030983af37715f2581099d453473fd0ea (diff)
downloadinitramfs-tools-cc6077aa62a510e6ce3d72c8a195bb33d141f904.tar.gz
initramfs-tools-cc6077aa62a510e6ce3d72c8a195bb33d141f904.zip
update-initramfs: Fix another unbound variable
still uncovering things.. Closes: #583695 Signed-off-by: maximilian attems <maks@debian.org>
-rwxr-xr-xupdate-initramfs2
1 files changed, 1 insertions, 1 deletions
diff --git a/update-initramfs b/update-initramfs
index e49115b..f8408e6 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -146,7 +146,7 @@ backup_booted_initramfs()
# nuke generated copy
remove_initramfs_bak()
{
- [ -z "${initramfs_bak}" ] && return 0
+ [ -z "${initramfs_bak:-}" ] && return 0
rm -f "${initramfs_bak}"
verbose "Removing ${initramfs_bak}"
}