Skip to content
Snippets Groups Projects
Unverified Commit 06d63a86 authored by Ben's avatar Ben Committed by GitHub
Browse files

Fully qualify Expand-Archive (#2066)

If a user has the Powershell Community Extensions installed, it comes
with another command Expand-Archive that doesn't have a DestinationPath
argument, causing an error.
parent 43d1c4c4
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ function download {
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
(New-Object Net.WebClient).DownloadFile($url, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("$temp"))
if ($?) {
(Expand-Archive -Path $temp -DestinationPath .); (Remove-Item $temp)
(Microsoft.PowerShell.Archive\Expand-Archive -Path $temp -DestinationPath .); (Remove-Item $temp)
} else {
$binary_error="Failed to download with powershell"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment