|
@@ -171,6 +171,8 @@ download_windows() {
|
|
|
return 1
|
|
return 1
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
+ [[ "$DEBUG" == [Yy1]* ]] && echo "Found download link: $iso_download_link"
|
|
|
|
|
+
|
|
|
MIDO_URL="$iso_download_link"
|
|
MIDO_URL="$iso_download_link"
|
|
|
return 0
|
|
return 0
|
|
|
}
|
|
}
|
|
@@ -274,8 +276,6 @@ download_windows_eval() {
|
|
|
fi ;;
|
|
fi ;;
|
|
|
"arm64" )
|
|
"arm64" )
|
|
|
iso_download_link=$(echo "$iso_download_links" | head -n 2 | tail -n 1) ;;
|
|
iso_download_link=$(echo "$iso_download_links" | head -n 2 | tail -n 1) ;;
|
|
|
- * )
|
|
|
|
|
- error "Invalid platform specified, value \"$PLATFORM\" is not recognized!" && return 1 ;;
|
|
|
|
|
esac ;;
|
|
esac ;;
|
|
|
"enterprise" )
|
|
"enterprise" )
|
|
|
case "${PLATFORM,,}" in
|
|
case "${PLATFORM,,}" in
|
|
@@ -287,16 +287,16 @@ download_windows_eval() {
|
|
|
fi ;;
|
|
fi ;;
|
|
|
"arm64" )
|
|
"arm64" )
|
|
|
iso_download_link=$(echo "$iso_download_links" | head -n 2 | tail -n 1) ;;
|
|
iso_download_link=$(echo "$iso_download_links" | head -n 2 | tail -n 1) ;;
|
|
|
- * )
|
|
|
|
|
- error "Invalid platform specified, value \"$PLATFORM\" is not recognized!" && return 1 ;;
|
|
|
|
|
esac ;;
|
|
esac ;;
|
|
|
"server" )
|
|
"server" )
|
|
|
- iso_download_link=$(echo "$iso_download_links" | head -n 1) ;;
|
|
|
|
|
|
|
+ case "${PLATFORM,,}" in
|
|
|
|
|
+ "x64" )
|
|
|
|
|
+ iso_download_link=$(echo "$iso_download_links" | head -n 1) ;;
|
|
|
|
|
+ esac ;;
|
|
|
* )
|
|
* )
|
|
|
error "Invalid type specified, value \"$enterprise_type\" is not recognized!" && return 1 ;;
|
|
error "Invalid type specified, value \"$enterprise_type\" is not recognized!" && return 1 ;;
|
|
|
esac
|
|
esac
|
|
|
|
|
|
|
|
- [[ "$DEBUG" == [Yy1]* ]] && echo "Found download link: $iso_download_link"
|
|
|
|
|
[ -z "$iso_download_link" ] && error "Could not parse download link from page!" && return 1
|
|
[ -z "$iso_download_link" ] && error "Could not parse download link from page!" && return 1
|
|
|
|
|
|
|
|
# Follow redirect so proceeding log message is useful
|
|
# Follow redirect so proceeding log message is useful
|
|
@@ -308,6 +308,21 @@ download_windows_eval() {
|
|
|
return $?
|
|
return $?
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ [[ "$DEBUG" == [Yy1]* ]] && echo "Found download link: $iso_download_link"
|
|
|
|
|
+
|
|
|
|
|
+ case "${PLATFORM,,}" in
|
|
|
|
|
+ "x64" )
|
|
|
|
|
+ if [[ "${iso_download_link,,}" != *"x64"* ]]; then
|
|
|
|
|
+ error "Download link is for the wrong platform? Please report this at $SUPPORT/issues"
|
|
|
|
|
+ return 1
|
|
|
|
|
+ fi ;;
|
|
|
|
|
+ "arm64" )
|
|
|
|
|
+ if [[ "${iso_download_link,,}" != *"a64"* && "${iso_download_link,,}" != *"arm64"* ]]; then
|
|
|
|
|
+ [[ "$DEBUG" == [Yy1]* ]] && echo "Link for ARM platform currently not available!"
|
|
|
|
|
+ return 1
|
|
|
|
|
+ fi ;;
|
|
|
|
|
+ esac
|
|
|
|
|
+
|
|
|
MIDO_URL="$iso_download_link"
|
|
MIDO_URL="$iso_download_link"
|
|
|
return 0
|
|
return 0
|
|
|
}
|
|
}
|