From 3b84503403563ba77cf5388b98a89e39f2c2151e Mon Sep 17 00:00:00 2001 From: Alexander Aprelev Date: Mon, 26 Feb 2018 20:11:11 -0800 Subject: [PATCH] Move quotes around to help Powershell 2.0 to substitute variable with value (#14907) --- bin/internal/update_dart_sdk.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/internal/update_dart_sdk.ps1 b/bin/internal/update_dart_sdk.ps1 index 9863f474da..405dbddebb 100644 --- a/bin/internal/update_dart_sdk.ps1 +++ b/bin/internal/update_dart_sdk.ps1 @@ -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