mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
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.
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user