From b9baaa9c981d32e746df70b5d9407d59f71dd92e Mon Sep 17 00:00:00 2001 From: Marc Nguyen Date: Tue, 25 Jun 2024 17:09:17 +0200 Subject: [PATCH] Fix hack_uname() of mlnxofed_ib_install: POSIX compliance (#6989) --- xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install b/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install index 69c03da1f..ef2c2e23f 100755 --- a/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install +++ b/xCAT-server/share/xcat/ib/scripts/Mellanox/mlnxofed_ib_install @@ -162,7 +162,7 @@ function hack_uname() for d in \$(ls /lib/modules | sort -V) do rpm -q kernel-\$d >/dev/null 2>&1 - if [ "\$?" == "0" ] ; then + if [ "\$?" -eq "0" ] ; then echo \$d break fi