[chore] Download apache orc source code from github if git does not work in build.sh. (#18625)

* [chore] Download apache orc source code from github if git does not work in build.sh.

* add cd "${DORIS_HOME}"

* Fix blank issue.
This commit is contained in:
Qi Chen
2023-04-14 17:54:14 +08:00
committed by GitHub
parent 5acf764d9c
commit 4284fc4e75

View File

@ -247,9 +247,17 @@ if [[ ! -f "${DORIS_THIRDPARTY}/installed/lib/libbacktrace.a" ]]; then
fi
fi
if [[ ! -f "${DORIS_HOME}/be/src/apache-orc/README.md " ]]; then
if [[ ! -f "${DORIS_HOME}/be/src/apache-orc/README.md" ]]; then
echo "apache-orc not exists, need to update submodules ..."
set +e
cd "${DORIS_HOME}"
git submodule update --init --recursive
exit_code=$?
set -e
if [[ "${exit_code}" -ne 0 ]]; then
mkdir -p "${DORIS_HOME}/be/src/apache-orc"
curl -L https://github.com/apache/doris-thirdparty/archive/refs/heads/orc.tar.gz | tar -xz -C "${DORIS_HOME}/be/src/apache-orc" --strip-components=1
fi
fi
if [[ "${CLEAN}" -eq 1 && "${BUILD_BE}" -eq 0 && "${BUILD_FE}" -eq 0 && "${BUILD_SPARK_DPP}" -eq 0 ]]; then