[BugFix] Fix build version is unknown when executing build.sh using absolute path (#24727)

Signed-off-by: gengjun-git <gengjun@starrocks.com>
This commit is contained in:
gengjun-git 2023-06-06 13:41:33 +08:00 committed by GitHub
parent dbe9b3c2ed
commit 6d8680fe1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ if [ -z $BUILD_TYPE ]; then
export BUILD_TYPE=Release
fi
cd $STARROCKS_HOME
if [ -z $STARROCKS_VERSION ]; then
tag_name=$(git describe --tags --exact-match 2>/dev/null)
branch_name=$(git symbolic-ref -q --short HEAD)