From ced9c7e28f934b1c9433071dabe462fbb9594b7d Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Mon, 25 Mar 2024 16:34:30 +0200 Subject: [PATCH] fix the script for the scanners --- scripts/install-python.ps1 | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/install-python.ps1 b/scripts/install-python.ps1 index 029a0869c7e..6002b96e5e8 100644 --- a/scripts/install-python.ps1 +++ b/scripts/install-python.ps1 @@ -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"