mirror of
https://github.com/dockur/windows.git
synced 2026-08-24 07:39:00 +01:00
fix: Deduplicate evaluation download links (#2098)
This commit is contained in:
+4
-3
@@ -333,8 +333,8 @@ downloadWindowsEval() {
|
|||||||
local lang="$2"
|
local lang="$2"
|
||||||
local desc="$3"
|
local desc="$3"
|
||||||
|
|
||||||
local culture language agent winVer
|
local compare compare_name link_name
|
||||||
local compare compare_name link_name type
|
local agent culture language type winVer
|
||||||
|
|
||||||
case "${id,,}" in
|
case "${id,,}" in
|
||||||
"win10${PLATFORM,,}-enterprise-eval" )
|
"win10${PLATFORM,,}-enterprise-eval" )
|
||||||
@@ -403,7 +403,8 @@ downloadWindowsEval() {
|
|||||||
page=${page//&/\&}
|
page=${page//&/\&}
|
||||||
|
|
||||||
all_links=$(printf '%s\n' "$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!"
|
error "Evaluation Center download page gave us no download link!"
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user