2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-21 11:12:04 +00:00

Fix hack_uname() of mlnxofed_ib_install: POSIX compliance (#6989)

This commit is contained in:
Marc Nguyen 2024-06-25 17:09:17 +02:00 committed by GitHub
parent 8432960e02
commit b9baaa9c98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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