Skip to content

Commit

Permalink
update script to allow setting otx version using env. variable
Browse files Browse the repository at this point in the history
  • Loading branch information
yunchu committed Aug 30, 2024
1 parent 4c8555e commit 0c89316
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docker/build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/bin/bash
# shellcheck disable=SC2154
# shellcheck disable=SC2154,SC2035,SC2046

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

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

0 comments on commit 0c89316

Please sign in to comment.