Skip to content

Commit

Permalink
fix the script for the scanners
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow committed Mar 25, 2024
1 parent 1b32cc3 commit ced9c7e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scripts/install-python.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,9 @@ if ($IsMacOS) {
} else {
$platform = "win32"
}

$downloadUrl = (($pythonManifest
| Where-Object { $_.version -eq $Version }
| Select-Object -First 1).files
| Where-Object { $_.platform -eq $platform -and $_.arch -eq $Arch }
| Select-Object -First 1).download_url
$manifestFileVersion = $pythonManifest | Where-Object { $_.version -eq $Version } | Select-Object -First 1
$manifestFileItem = $manifestFileVersion.files | Where-Object { $_.platform -eq $platform -and $_.arch -eq $Arch } | Select-Object -First 1
$downloadUrl = $manifestFileItem.download_url

# download
$tempDir = Join-Path "$HOME_DIR" "python-temp"
Expand Down

0 comments on commit ced9c7e

Please sign in to comment.