Update mido.sh

This commit is contained in:
Kroese 2024-05-17 00:43:58 +02:00 committed by GitHub
parent 409bfe3a89
commit 76dd32f10c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -296,9 +296,9 @@ getWindows() {
local desc="$2" local desc="$2"
local language="$3" local language="$3"
MIDO_URL="" local msg="Requesting $desc from official Microsoft servers..."
info "Downloading $desc from official Microsoft servers..." info "$msg" && html "$msg"
case "${id,,}" in case "${id,,}" in
"win81${PLATFORM,,}" | "win10${PLATFORM,,}" | "win11${PLATFORM,,}" ) "win81${PLATFORM,,}" | "win10${PLATFORM,,}" | "win11${PLATFORM,,}" )
download_windows "$id" "$language" && return 0 download_windows "$id" "$language" && return 0
@ -324,6 +324,7 @@ getWindows() {
error "Unknown version: $id" error "Unknown version: $id"
esac esac
MIDO_URL=""
return 1 return 1
} }