Skip to content
Myr

Fully qualify Expand-Archive (#2066)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by Ben · committed by GitHub · parent 43d1c4c · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:install.ps1+1 added-1 removed
55 unmodified lines
56 $temp=$env:TMP + "\fzf.zip"57 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls1258 (New-Object Net.WebClient).DownloadFile($url, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("$temp"))59 if ($?) {60 (Expand-Archive -Path $temp -DestinationPath .); (Remove-Item $temp)60 (Microsoft.PowerShell.Archive\Expand-Archive -Path $temp -DestinationPath .); (Remove-Item $temp)61 } else {62 $binary_error="Failed to download with powershell"63 }64 if (-not (Test-Path fzf.exe)) {
9 unmodified lines