Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
154dbc59
Commit
154dbc59
authored
Jul 27, 2018
by
Niklas Schulze
Committed by
Michael Goderbauer
Jul 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update_dart_sdk.ps1: Fall back to Invoke-WebRequest if BITS fails (#19873)
parent
1b81b612
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
update_dart_sdk.ps1
bin/internal/update_dart_sdk.ps1
+9
-2
No files found.
bin/internal/update_dart_sdk.ps1
View file @
154dbc59
...
@@ -43,8 +43,15 @@ if (Test-Path $dartSdkPath) {
...
@@ -43,8 +43,15 @@ if (Test-Path $dartSdkPath) {
}
}
New-Item
$dartSdkPath
-force -type directory | Out-Null
New-Item
$dartSdkPath
-force -type directory | Out-Null
$dartSdkZip
=
"
$cachePath
\
$dartZipName
"
$dartSdkZip
=
"
$cachePath
\
$dartZipName
"
Import-Module BitsTransfer
Start-BitsTransfer
-Source
$dartSdkUrl
-Destination
$dartSdkZip
Try
{
Import-Module BitsTransfer
Start-BitsTransfer
-Source
$dartSdkUrl
-Destination
$dartSdkZip
}
Catch
{
Write-Host
"Downloading the Dart SDK using the BITS service failed, retrying with WebRequest..."
Invoke-WebRequest
-Uri
$dartSdkUrl
-OutFile
$dartSdkZip
}
Write-Host
"Unzipping Dart SDK..."
Write-Host
"Unzipping Dart SDK..."
If
(
Get-Command 7z -errorAction SilentlyContinue
)
{
If
(
Get-Command 7z -errorAction SilentlyContinue
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment