Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3b84503

Browse files
authored
Move quotes around to help Powershell 2.0 to substitute variable with value (#14907)
1 parent 02546c7 commit 3b84503

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/internal/update_dart_sdk.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ Start-BitsTransfer -Source $dartSdkUrl -Destination $dartSdkZip
4949
Write-Host "Unzipping Dart SDK..."
5050
If (Get-Command 7z -errorAction SilentlyContinue) {
5151
# The built-in unzippers are painfully slow. Use 7-Zip, if available.
52-
& 7z x $dartSdkZip -o"$cachePath" -bd | Out-Null
52+
& 7z x $dartSdkZip "-o$cachePath" -bd | Out-Null
5353
} ElseIf (Get-Command 7za -errorAction SilentlyContinue) {
5454
# Use 7-Zip's standalone version 7za.exe, if available.
55-
& 7za x $dartSdkZip -o"$cachePath" -bd | Out-Null
55+
& 7za x $dartSdkZip "-o$cachePath" -bd | Out-Null
5656
} ElseIf (Get-Command Expand-Archive -errorAction SilentlyContinue) {
5757
# Use PowerShell's built-in unzipper, if available (requires PowerShell 5+).
5858
Expand-Archive $dartSdkZip -DestinationPath $cachePath

0 commit comments

Comments
 (0)