mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-28 22:56:32 +00:00
Make sure the command works in both centos and ubuntu. (#11894)
make one bash condition compatible with POSIX
This commit is contained in:
parent
1494120423
commit
f70201c801
1 changed files with 2 additions and 1 deletions
|
|
@ -27,7 +27,8 @@ if [ "${AUDITWHEEL_POLICY}" = "musllinux_1_1" ]; then
|
|||
apk add --no-cache bash
|
||||
fi
|
||||
|
||||
if command -v yum &> /dev/null ; then
|
||||
# https://www.shellcheck.net/wiki/SC3020
|
||||
if command -v yum 2>&1 ; then
|
||||
yum install -y yum-plugin-versionlock
|
||||
yum versionlock cuda* libcudnn* libnccl*
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue