mirror of
https://github.com/dockur/windows.git
synced 2025-10-14 07:46:11 +01:00
feat: Verify download link (#1441)
This commit is contained in:
parent
8a2f23275e
commit
e945e852dc
@ -184,6 +184,7 @@ download_windows_eval() {
|
|||||||
local desc="$3"
|
local desc="$3"
|
||||||
local filter=""
|
local filter=""
|
||||||
local culture=""
|
local culture=""
|
||||||
|
local compare=""
|
||||||
local language=""
|
local language=""
|
||||||
local user_agent=""
|
local user_agent=""
|
||||||
local enterprise_type=""
|
local enterprise_type=""
|
||||||
@ -323,6 +324,13 @@ download_windows_eval() {
|
|||||||
fi ;;
|
fi ;;
|
||||||
esac
|
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"
|
MIDO_URL="$iso_download_link"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user