mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 12:15:50 +00:00
Update install.sh
This commit is contained in:
parent
505f410517
commit
27efb05606
1 changed files with 8 additions and 21 deletions
|
|
@ -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=""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue