We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edda7e9 commit fa73cf9Copy full SHA for fa73cf9
src/ci/init_repo.sh
@@ -62,6 +62,7 @@ for i in ${!modules[@]}; do
62
url=${urls[$i]}
63
url=${url/\.git/}
64
fetch_github_commit_archive $module "$url/archive/$commit.tar.gz" &
65
+ bg_pids[${i}]=$!
66
continue
67
else
68
use_git="$use_git $module"
@@ -70,4 +71,9 @@ done
70
71
retry sh -c "git submodule deinit -f $use_git && \
72
git submodule sync && \
73
git submodule update -j 16 --init --recursive $use_git"
-wait
74
+STATUS=0
75
+for pid in ${bg_pids[*]}
76
+do
77
+ wait $pid || STATUS=1
78
+done
79
+exit ${STATUS}
0 commit comments