Skip to content

Commit f611cc1

Browse files
authored
Update script to allow setting otx version using env. variable (#3913)
1 parent 5170736 commit f611cc1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docker/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/bash
2-
# shellcheck disable=SC2154
2+
# shellcheck disable=SC2154,SC2035,SC2046
33

4-
OTX_VERSION=$(python -c 'import otx; print(otx.__version__)')
4+
if [ "$OTX_VERSION" == "" ]; then
5+
OTX_VERSION=$(python -c 'import otx; print(otx.__version__)')
6+
fi
57
THIS_DIR=$(dirname "$0")
68

79
echo "Build OTX ${OTX_VERSION} CUDA Docker image..."

0 commit comments

Comments
 (0)