re-land "Retry cURL downloads" (#51518)
This commit is contained in:
parent
52a5311924
commit
2cb0aa05a2
@ -81,7 +81,7 @@ if [ ! -f "$ENGINE_STAMP" ] || [ "$ENGINE_VERSION" != `cat "$ENGINE_STAMP"` ]; t
|
||||
mkdir -m 755 -p -- "$DART_SDK_PATH"
|
||||
DART_SDK_ZIP="$FLUTTER_ROOT/bin/cache/$DART_ZIP_NAME"
|
||||
|
||||
curl --continue-at - --location --output "$DART_SDK_ZIP" "$DART_SDK_URL" 2>&1 || {
|
||||
curl --retry 3 --continue-at - --location --output "$DART_SDK_ZIP" "$DART_SDK_URL" 2>&1 || {
|
||||
echo
|
||||
echo "Failed to retrieve the Dart SDK from: $DART_SDK_URL"
|
||||
echo "If you're located in China, please see this page:"
|
||||
|
Loading…
x
Reference in New Issue
Block a user