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:
parent
8432960e02
commit
b9baaa9c98
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user