From 39a642b66b2b4341a1345b63c5731e4ab90ad1b5 Mon Sep 17 00:00:00 2001 From: Hari Bathini Date: Tue, 1 Jun 2021 16:46:58 +0530 Subject: [PATCH] kdump-lib.sh: fix a warning in prepare_kdump_bootinfo() Fix the warning observed when KDUMP_KERNELVER is specified: kdumpctl[10926]: /lib/kdump/kdump-lib.sh: line 697: [: missing `]' Signed-off-by: Hari Bathini Acked-by: Kairui Song --- kdump-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdump-lib.sh b/kdump-lib.sh index ecf909e..27741fb 100755 --- a/kdump-lib.sh +++ b/kdump-lib.sh @@ -746,7 +746,7 @@ prepare_kdump_bootinfo() local boot_imglist boot_dirlist boot_initrdlist curr_kver="$(uname -r)" local machine_id - if [ -z "$KDUMP_KERNELVER"]; then + if [ -z "$KDUMP_KERNELVER" ]; then KDUMP_KERNELVER="$(uname -r)" fi