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 <michal.mielewczyk@intel.com>
This commit is contained in:
parent
cedb77024d
commit
1b084e5475
@ -30,9 +30,9 @@ check () {
|
|||||||
#it's RHEL, check versions to see if the workaround is needed
|
#it's RHEL, check versions to see if the workaround is needed
|
||||||
|
|
||||||
IFS=. read -a arr <<< $RHEL_RELEASE
|
IFS=. read -a arr <<< $RHEL_RELEASE
|
||||||
RHEL_MAJOR=${arr[0]}
|
RHEL_MAJOR="${arr[0]:=0}"
|
||||||
RHEL_MINOR=${arr[1]}
|
RHEL_MINOR="${arr[1]:=0}"
|
||||||
RHEL_SUB=${arr[2]}
|
RHEL_SUB="${arr[2]:=0}"
|
||||||
|
|
||||||
#check kernel and rhel version (major/minor/sub)
|
#check kernel and rhel version (major/minor/sub)
|
||||||
if [ "$LINUX_MAJOR" -eq "$QUEUE_PUT_WA_LINUX_MAJOR_SINCE" ] &&
|
if [ "$LINUX_MAJOR" -eq "$QUEUE_PUT_WA_LINUX_MAJOR_SINCE" ] &&
|
||||||
|
Loading…
Reference in New Issue
Block a user