!17 [build] fix set version in mac build env

Merge pull request !17 from wuhuiquan/ohos_config
This commit is contained in:
openharmony_ci
2024-12-03 09:01:09 +00:00
committed by Gitee
+1 -1
View File
@@ -51,7 +51,7 @@ download_rust() {
get_new_version() {
pushd ${root_build_dir}/../harmony/llvm/
local commit_id_full=$(git rev-parse HEAD)
local commit_id_short=$(expr substr "$commit_id_full" 1 10)
local commit_id_short=${commit_id_full:1:10}
new_version="OHOS llvm-preject $commit_id_short"
popd
}