From 65b680124a80af2c6082f9a37ad4a6b77dab48e1 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 30 Apr 2024 06:34:01 +0200 Subject: [PATCH] Update define.sh --- src/define.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/define.sh b/src/define.sh index ca2e394..78f82a2 100644 --- a/src/define.sh +++ b/src/define.sh @@ -112,8 +112,31 @@ getVersion() { return 0 } +getLink() { + + # Fallbacks for users who cannot connect to the Microsoft servers + + local id="$1" + local url="" + local host="https://drive.massgrave.dev" + + case "${id,,}" in + "win11${PLATFORM,,}") + url="$host/SW_DVD9_Win_Pro_11_23H2.2_Arm64_English_Pro_Ent_EDU_N_MLF_X23-68023.ISO" + ;; + "win10${PLATFORM,,}") + url="$host/SW_DVD9_Win_Pro_10_22H2.15_Arm64_English_Pro_Ent_EDU_N_MLF_X23-67223.ISO" + ;; + esac + + echo "$url" + return 0 +} + secondLink() { + # Fallbacks for users who cannot connect to the Microsoft servers + local id="$1" local url="" local host="https://dl.bobpony.com"