1
0
鏡像自 https://github.com/dockur/windows.git 已同步 2026-06-12 13:19:34 +08:00

feat: Verify download link (#1441)

此提交包含在:
Kroese
2025-10-01 17:34:13 +02:00
提交者 GitHub
父節點 8a2f23275e
當前提交 e945e852dc
+8
查看文件
@@ -184,6 +184,7 @@ download_windows_eval() {
local desc="$3"
local filter=""
local culture=""
local compare=""
local language=""
local user_agent=""
local enterprise_type=""
@@ -323,6 +324,13 @@ download_windows_eval() {
fi ;;
esac
if [[ "$DEBUG" == [Yy1]* && "$VERIFY" == [Yy1]* && "${lang,,}" == "en"* ]]; then
compare=$(getMido "$id" "$lang" "")
if [[ "${iso_download_link,,}" != "${compare,,}" ]]; then
echo "Retrieved link does not match the fixed link: $compare"
fi
fi
MIDO_URL="$iso_download_link"
return 0
}