Error if submodule fetch fails.
This commit is contained in:
parent
edda7e959d
commit
fa73cf932b
1 changed files with 7 additions and 1 deletions
|
@ -62,6 +62,7 @@ for i in ${!modules[@]}; do
|
||||||
url=${urls[$i]}
|
url=${urls[$i]}
|
||||||
url=${url/\.git/}
|
url=${url/\.git/}
|
||||||
fetch_github_commit_archive $module "$url/archive/$commit.tar.gz" &
|
fetch_github_commit_archive $module "$url/archive/$commit.tar.gz" &
|
||||||
|
bg_pids[${i}]=$!
|
||||||
continue
|
continue
|
||||||
else
|
else
|
||||||
use_git="$use_git $module"
|
use_git="$use_git $module"
|
||||||
|
@ -70,4 +71,9 @@ done
|
||||||
retry sh -c "git submodule deinit -f $use_git && \
|
retry sh -c "git submodule deinit -f $use_git && \
|
||||||
git submodule sync && \
|
git submodule sync && \
|
||||||
git submodule update -j 16 --init --recursive $use_git"
|
git submodule update -j 16 --init --recursive $use_git"
|
||||||
wait
|
STATUS=0
|
||||||
|
for pid in ${bg_pids[*]}
|
||||||
|
do
|
||||||
|
wait $pid || STATUS=1
|
||||||
|
done
|
||||||
|
exit ${STATUS}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue