Skip to content

Commit

Permalink
strengthen the logic of version.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JackLau1222 authored Dec 12, 2024
1 parent d35cc19 commit 606731e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
if [[ $OS == *Windows* ]]; then
BMF_BUILD_VERSION=$(python setup.py --version)
else
BMF_BUILD_VERSION=$(python${BMF_PYVER} setup.py --version)
if[[ -z $BMF_PYENV ]]
BMF_BUILD_VERSION=$(python${BMF_PYVER} setup.py --version)
else
BMF_BUILD_VERSION=$(python3 setup.py --version)
fi
fi

if echo "Using git: " && git --version
Expand Down

0 comments on commit 606731e

Please sign in to comment.