diff --git a/base-images/build.sh b/base-images/build.sh index f93ef1ed7..4c0aa2470 100755 --- a/base-images/build.sh +++ b/base-images/build.sh @@ -2,7 +2,7 @@ ROOT_DIR=`dirname $0` -GIT_TAG_VERSION=${$(git describe --tags --abbrev=0)//v/} # remove v from version +GIT_TAG_VERSION=$(git describe --tags --abbrev=0 | sed -r 's/[v]+//g') # remove v from version ENVD_VERSION="${ENVD_VERSION:-$GIT_TAG_VERSION}" DOCKER_HUB_ORG="${DOCKER_HUB_ORG:-tensorchord}" PYTHON_VERSION="${PYTHON_VERSION:-3.9}"