From 1b084e54750a540f554ec5fb502f6c6d0191c043 Mon Sep 17 00:00:00 2001 From: Michal Mielewczyk Date: Mon, 12 Sep 2022 09:24:39 +0200 Subject: [PATCH] configure: fix rhel 8.5 workaround check In case the installed kernel doesn't have a minor version number the script fails. Assigning default value removes this error. Signed-off-by: Michal Mielewczyk --- configure.d/1_blk_queue_exit_workaround_for_rhel.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.d/1_blk_queue_exit_workaround_for_rhel.conf b/configure.d/1_blk_queue_exit_workaround_for_rhel.conf index 70a3437..2f85ced 100644 --- a/configure.d/1_blk_queue_exit_workaround_for_rhel.conf +++ b/configure.d/1_blk_queue_exit_workaround_for_rhel.conf @@ -30,9 +30,9 @@ check () { #it's RHEL, check versions to see if the workaround is needed IFS=. read -a arr <<< $RHEL_RELEASE - RHEL_MAJOR=${arr[0]} - RHEL_MINOR=${arr[1]} - RHEL_SUB=${arr[2]} + RHEL_MAJOR="${arr[0]:=0}" + RHEL_MINOR="${arr[1]:=0}" + RHEL_SUB="${arr[2]:=0}" #check kernel and rhel version (major/minor/sub) if [ "$LINUX_MAJOR" -eq "$QUEUE_PUT_WA_LINUX_MAJOR_SINCE" ] &&