mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 19:55:49 +00:00
Update mido.sh
This commit is contained in:
parent
57a167ff39
commit
99da9e7877
1 changed files with 10 additions and 4 deletions
14
src/mido.sh
14
src/mido.sh
|
|
@ -254,10 +254,10 @@ download_windows_eval() {
|
|||
}
|
||||
|
||||
case "$enterprise_type" in
|
||||
"enterprise")
|
||||
"enterprise" )
|
||||
iso_download_link=$(echo "$iso_download_links" | head -n 2 | tail -n 1)
|
||||
;;
|
||||
"iot")
|
||||
"iot" )
|
||||
if [[ "${PLATFORM,,}" == "x64" ]]; then
|
||||
iso_download_link=$(echo "$iso_download_links" | head -n 1 | tail -n 1)
|
||||
fi
|
||||
|
|
@ -265,12 +265,18 @@ download_windows_eval() {
|
|||
iso_download_link=$(echo "$iso_download_links" | head -n 2 | tail -n 1)
|
||||
fi
|
||||
;;
|
||||
"ltsc")
|
||||
"ltsc" )
|
||||
iso_download_link=$(echo "$iso_download_links" | head -n 4 | tail -n 1)
|
||||
;;
|
||||
*) iso_download_link="$iso_download_links" ;;
|
||||
"serverx" )
|
||||
iso_download_link="$iso_download_links"
|
||||
;;
|
||||
* )
|
||||
error "Invalid enterprise type specified, value \"$enterprise_type\" is not recognized!" && return 1 ;;
|
||||
esac
|
||||
|
||||
[[ "$DEBUG" == [Yy1]* ]] && echo "Found download link: $iso_download_link"
|
||||
|
||||
# Follow redirect so proceeding log message is useful
|
||||
# This is a request we make this Fido doesn't
|
||||
# We don't need to set "--max-filesize" here because this is a HEAD request and the output is to /dev/null anyway
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue