Update install.sh

This commit is contained in:
Kroese 2024-05-05 19:30:45 +02:00 committed by GitHub
parent 505f410517
commit 27efb05606
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -210,25 +210,12 @@ getESD() {
local editionName local editionName
local winCatalog size local winCatalog size
case "${version,,}" in if ! isESD "${version,,}"; then
"win11${PLATFORM,,}" ) error "Invalid VERSION specified, value \"$version\" is not recognized!" && return 1
editionName="Professional" fi
winCatalog="https://go.microsoft.com/fwlink?linkid=2156292"
;; winCatalog=$(getCatalog "$version" "url")
"win10${PLATFORM,,}" ) editionName=$(getCatalog "$version" "edition")
editionName="Professional"
winCatalog="https://go.microsoft.com/fwlink/?LinkId=841361"
;;
"win11${PLATFORM,,}-enterprise" )
editionName="Enterprise"
winCatalog="https://go.microsoft.com/fwlink?linkid=2156292"
;;
"win10${PLATFORM,,}-enterprise" )
editionName="Enterprise"
winCatalog="https://go.microsoft.com/fwlink/?LinkId=841361"
;;
*) error "Invalid VERSION specified, value \"$version\" is not recognized!" && return 1 ;;
esac
local msg="Downloading product information from Microsoft..." local msg="Downloading product information from Microsoft..."
info "$msg" && html "$msg" info "$msg" && html "$msg"
@ -293,8 +280,8 @@ verifyFile() {
local total="$3" local total="$3"
local check="$4" local check="$4"
if [ -n "$size" ] && [[ "$total" != "$size" ]]; then if [ -n "$size" ] && [[ "$total" != "$size" ]] && [[ "$size" != "0" ]]; then
[[ "$size" != "0" ]] && warn "The download file has an unexpected size: $total" warn "The downloaded file has an unexpected size: $total bytes! Please report this at $SUPPORT/issues"
fi fi
local hash="" local hash=""