Skip to content

Commit

Permalink
Retry downloading llvm commit tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanhs committed Jul 6, 2017
1 parent 54fc9e4 commit 7c8523e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ci/init_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ for module in $modules; do
if [ "$module" = src/llvm ]; then
commit="$(git ls-tree HEAD src/llvm | awk '{print $3}')"
git rm src/llvm
curl -sSL -O "https://github.com/rust-lang/llvm/archive/$commit.tar.gz"
retry sh -c "rm -f $commit.tar.gz && \
curl -sSL -O https://github.com/rust-lang/llvm/archive/$commit.tar.gz"
tar -C src/ -xf "$commit.tar.gz"
rm "$commit.tar.gz"
mv "src/llvm-$commit" src/llvm
Expand Down

0 comments on commit 7c8523e

Please sign in to comment.