fix: Deduplicate evaluation download links (#2098)

This commit is contained in:
Kroese
2026-08-07 07:14:23 +02:00
committed by GitHub
parent 751fae1343
commit 490501fba4
+4 -3
View File
@@ -333,8 +333,8 @@ downloadWindowsEval() {
local lang="$2"
local desc="$3"
local culture language agent winVer
local compare compare_name link_name type
local compare compare_name link_name
local agent culture language type winVer
case "${id,,}" in
"win10${PLATFORM,,}-enterprise-eval" )
@@ -403,7 +403,8 @@ downloadWindowsEval() {
page=${page//&/\&}
all_links=$(printf '%s\n' "$page" |
grep -Eio "https://go\.microsoft\.com/fwlink(/p)?/\?[^\"'<>[:space:]]+") || {
grep -Eio "https://go\.microsoft\.com/fwlink(/p)?/\?[^\"'<>[:space:]]+" |
awk 'NF && !seen[$0]++') || {
error "Evaluation Center download page gave us no download link!"
return 1
}