[Windows] Fix chromedriver download process (#7942)

This commit is contained in:
Vasilii Polikarpov
2023-07-24 09:28:34 +02:00
committed by GitHub
parent a5632eb5f2
commit 654d8a6688
2 changed files with 24 additions and 12 deletions

View File

@@ -451,11 +451,13 @@ function Extract-7Zip {
[Parameter(Mandatory=$true)]
[string]$Path,
[Parameter(Mandatory=$true)]
[string]$DestinationPath
[string]$DestinationPath,
[ValidateSet("x", "e")]
[char]$ExtractMethod = "x"
)
Write-Host "Expand archive '$PATH' to '$DestinationPath' directory"
7z.exe x "$Path" -o"$DestinationPath" -y | Out-Null
7z.exe $ExtractMethod "$Path" -o"$DestinationPath" -y | Out-Null
if ($LASTEXITCODE -ne 0)
{