Skip to content

Commit

Permalink
Merge pull request #225 from mingyaulee/patch-1
Browse files Browse the repository at this point in the history
Fix version selector
  • Loading branch information
nanasess authored Sep 18, 2023
2 parents cac7048 + 705e121 commit dd58896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/setup-chromedriver.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if (!$url)
Write-Output "Falling back to latest version of ChromeDriver for $arch"
$version3 = $version.Substring(0, $version.LastIndexOf('.'))
Write-Output "VERSION3 = $version3"
$version = $json | ConvertFrom-Json | Select-Object -ExpandProperty versions | Where-Object { $_.version -like "$version3.*" } | Select-Object -Last 1 -ExpandProperty version
$version = $json | Select-Object -ExpandProperty versions | Where-Object { $_.version -like "$version3.*" } | Select-Object -Last 1 -ExpandProperty version
Write-Output "VERSION = $version"
$url = $json | Select-Object -ExpandProperty versions | Where-Object { $_.version -eq $version } | Select-Object -ExpandProperty downloads | Select-Object -ExpandProperty chromedriver | Where-Object { $_.platform -eq $arch } | Select-Object -ExpandProperty url
}
Expand Down

0 comments on commit dd58896

Please sign in to comment.