This is an automated email from the ASF dual-hosted git repository. jiafengzheng pushed a commit to branch env-fix-new in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/env-fix-new by this push: new 8aa6426a4b 1 8aa6426a4b is described below commit 8aa6426a4b7b46027a40fc36a3d4ac4161a93b17 Author: jiafeng.zhang <zhang...@gmail.com> AuthorDate: Wed Aug 30 18:03:06 2023 +0800 1 --- env.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/env.sh b/env.sh index f578f8b662..6cb221f8e8 100755 --- a/env.sh +++ b/env.sh @@ -146,9 +146,14 @@ elif [[ "${DORIS_TOOLCHAIN}" == "clang" ]]; then fi covs=() - while IFS=$'\n' read -r line; do - covs+=$line - done < =(find "${DORIS_CLANG_HOME}" -name "llvm-cov*") + tmp_file=$(mktemp) + find "${DORIS_CLANG_HOME}" -name "llvm-cov*" > "${tmp_file}" + + # Read lines from the temporary file and populate the array + while IFS= read -r line; do + covs+=("$line") + done < "${tmp_file}" + if [[ ${#covs} -ge 1 ]]; then LLVM_COV="${covs[1]}" else @@ -157,9 +162,9 @@ elif [[ "${DORIS_TOOLCHAIN}" == "clang" ]]; then export LLVM_COV profdatas=() - while IFS=$'\n' read -r line; do - profdatas+=$line - done < =(find "${DORIS_CLANG_HOME}" -name "llvm-profdata*") + find "${DORIS_CLANG_HOME}" -name "llvm-profdata*" | while IFS= read -r line; do + profdatas+=("$line") + done if [[ ${#profdatas} -ge 1 ]]; then LLVM_PROFDATA="${profdatas[1]}" else --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org