Re: [PATCH] kdump-lib.sh: fix a warning in prepare_kdump_bootinfo()
by Kairui Song
Thanks!
On Tue, Jun 1, 2021 at 7:17 PM Hari Bathini <hbathini(a)linux.ibm.com> wrote:
>
> Fix the warning observed when KDUMP_KERNELVER is specified:
>
> kdumpctl[10926]: /lib/kdump/kdump-lib.sh: line 697: [: missing `]'
>
> Signed-off-by: Hari Bathini <hbathini(a)linux.ibm.com>
> ---
> 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
>
>
>
Acked-by: Kairui Song <kasong(a)redhat.com>
--
Best Regards,
Kairui Song
2 years, 10 months
[PATCH] kdump-lib.sh: fix a warning in prepare_kdump_bootinfo()
by Hari Bathini
Fix the warning observed when KDUMP_KERNELVER is specified:
kdumpctl[10926]: /lib/kdump/kdump-lib.sh: line 697: [: missing `]'
Signed-off-by: Hari Bathini <hbathini(a)linux.ibm.com>
---
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
2 years, 10 months