mirror of
https://github.com/actions/runner-images.git
synced 2025-12-19 00:06:57 +00:00
[Windows] Fix chromedriver download process (#7942)
This commit is contained in:
committed by
GitHub
parent
a5632eb5f2
commit
654d8a6688
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user