We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa690bd commit e858305Copy full SHA for e858305
1 file changed
elements/mlnx-ofed/environment.d/mlnx-ofed
@@ -1,8 +1,7 @@
1
#!/bin/bash
2
3
-if [ -n "$DIB_MLNX_OFED_REPO_FILE" ]; then
4
- export MLNX_OFED_REPO_FILE=${DIB_MLNX_OFED_REPO_FILE}
5
-else
+export MLNX_OFED_REPO_FILE=${DIB_MLNX_OFED_REPO_FILE:-}
+if [ -z "$MLNX_OFED_REPO_FILE" ]; then
6
export MLNX_OFED_REPO=${DIB_MLNX_OFED_REPO:?"A repo URL for Mellanox OFED packages is required"}
7
export MLNX_OFED_VERSION=${DIB_MLNX_OFED_VERSION:?"A revision of OFED is required"}
8
fi
0 commit comments