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