Skip to content

Commit 9f3cf00

Browse files
[windows] fix extracting checksum for Miniconda installer (#9025)
1 parent 3f2b0e2 commit 9f3cf00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

images/windows/scripts/build/Install-Miniconda.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $installerName = "Miniconda3-latest-Windows-x86_64.exe"
99

1010
#region Supply chain security
1111
$distributorFileHash = $null
12-
$checksums = (Invoke-RestMethod -Uri 'https://repo.anaconda.com/miniconda/' | ConvertFrom-HTML).SelectNodes('//html/body/table/tr')
12+
$checksums = (ConvertFrom-HTML -Uri 'https://repo.anaconda.com/miniconda/').SelectNodes('//html/body/table/tr')
1313

1414
foreach ($node in $checksums) {
1515
if ($node.ChildNodes[1].InnerText -eq $installerName) {

0 commit comments

Comments
 (0)