From 99649b22959f488a42d559035f68ea9440df5c14 Mon Sep 17 00:00:00 2001 From: wangyux1 <15006200+wang-yu-x1@user.noreply.gitee.com> Date: Wed, 22 Oct 2025 08:04:34 +0000 Subject: [PATCH] update tools/download_opensource.sh. edit build file Signed-off-by: wangyux1 <15006200+wang-yu-x1@user.noreply.gitee.com> --- tools/download_opensource.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tools/download_opensource.sh b/tools/download_opensource.sh index b397b2d..a7384c5 100644 --- a/tools/download_opensource.sh +++ b/tools/download_opensource.sh @@ -71,7 +71,7 @@ function checksum_and_decompress() { *.tar.gz) echo "use tar to decompress" mkdir "${savepath}/${name}" - tar -xf ${filename} -C "$name" --strip-components=1 && rm ${filename} + tar -zxvf ${filename} -C "$name" --strip-components=1 && rm ${filename} ;; *.zip) echo "use unzip to decompress" @@ -154,15 +154,9 @@ download_a_repo() { pids=() while IFS=',' read -r name tag module repo sha256 usage; do # Start background process for each task. - download_a_repo "$name" "$tag" "$module" "$repo" "$sha256" "$usage" & + download_a_repo "$name" "$tag" "$module" "$repo" "$sha256" "$usage" pid=$! - pids+=("$pid") echo "Task PID ${pid}: download repo $repo" done < "${OPENSOURCE}" -# Wait all task and handle errors -for pid in "${pids[@]}"; do - wait "${pid}" || echo "Task with PID ${pid} failed" -done - echo "All downloads completed!" -- Gitee