Skip to content

Commit

Permalink
use retry for downloading clang tools (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak authored Aug 23, 2021
1 parent f1567f3 commit 4c2de6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function download_tools {
if validate_url ${clangFormatUrl} > /dev/null; then
echo "Downloading clang-format to bin directory"
# download appropriate version of clang-format
wget --progress=dot:giga ${clangFormatUrl} -O bin/clang-format
wget --tries 4 --progress=dot:giga ${clangFormatUrl} -O bin/clang-format
chmod 751 bin/clang-format
else
echo "clang-format not found here: ${clangFormatUrl}"
Expand All @@ -86,7 +86,7 @@ function download_tools {
if validate_url ${clangTidyUrl} > /dev/null; then
echo "Downloading clang-tidy to bin directory"
# download appropriate version of clang-tidy
wget --progress=dot:giga ${clangTidyUrl} -O bin/clang-tidy
wget --tries 4 --progress=dot:giga ${clangTidyUrl} -O bin/clang-tidy
chmod 751 bin/clang-tidy
else
echo "clang-tidy not found here: ${clangTidyUrl}"
Expand Down

0 comments on commit 4c2de6e

Please sign in to comment.