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
3b845034
Unverified
Commit
3b845034
authored
Feb 27, 2018
by
Alexander Aprelev
Committed by
GitHub
Feb 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move quotes around to help Powershell 2.0 to substitute variable with value (#14907)
parent
02546c70
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
update_dart_sdk.ps1
bin/internal/update_dart_sdk.ps1
+2
-2
No files found.
bin/internal/update_dart_sdk.ps1
View file @
3b845034
...
...
@@ -49,10 +49,10 @@ Start-BitsTransfer -Source $dartSdkUrl -Destination $dartSdkZip
Write-Host
"Unzipping Dart SDK..."
If
(
Get-Command 7z -errorAction SilentlyContinue
)
{
# The built-in unzippers are painfully slow. Use 7-Zip, if available.
& 7z x
$dartSdkZip
-o
"
$cachePath
"
-bd | Out-Null
& 7z x
$dartSdkZip
"-o
$cachePath
"
-bd | Out-Null
}
ElseIf
(
Get-Command 7za -errorAction SilentlyContinue
)
{
# Use 7-Zip's standalone version 7za.exe, if available.
& 7za x
$dartSdkZip
-o
"
$cachePath
"
-bd | Out-Null
& 7za x
$dartSdkZip
"-o
$cachePath
"
-bd | Out-Null
}
ElseIf
(
Get-Command
Expand-Archive
-errorAction SilentlyContinue
)
{
# Use PowerShell's built-in unzipper, if available (requires PowerShell 5+).
Expand-Archive
$dartSdkZip
-DestinationPath
$cachePath
...
...
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