Update define.sh

This commit is contained in:
Kroese 2024-05-05 20:22:10 +02:00 committed by GitHub
parent b9f003a873
commit afd3c867be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -396,29 +396,35 @@ getCatalog() {
local id="$1" local id="$1"
local ret="$2" local ret="$2"
local url="" local url=""
local name=""
local edition="" local edition=""
case "${id,,}" in case "${id,,}" in
"win11${PLATFORM,,}" ) "win11${PLATFORM,,}" )
edition="Professional" edition="Professional"
name="Windows 11 Pro"
url="https://go.microsoft.com/fwlink?linkid=2156292" url="https://go.microsoft.com/fwlink?linkid=2156292"
;; ;;
"win10${PLATFORM,,}" ) "win10${PLATFORM,,}" )
edition="Professional" edition="Professional"
name="Windows 10 Pro"
url="https://go.microsoft.com/fwlink/?LinkId=841361" url="https://go.microsoft.com/fwlink/?LinkId=841361"
;; ;;
"win11${PLATFORM,,}-enterprise" | "win11${PLATFORM,,}-enterprise-eval") "win11${PLATFORM,,}-enterprise" | "win11${PLATFORM,,}-enterprise-eval")
edition="Enterprise" edition="Enterprise"
name="Windows 11 Enterprise"
url="https://go.microsoft.com/fwlink?linkid=2156292" url="https://go.microsoft.com/fwlink?linkid=2156292"
;; ;;
"win10${PLATFORM,,}-enterprise" | "win10${PLATFORM,,}-enterprise-eval" ) "win10${PLATFORM,,}-enterprise" | "win10${PLATFORM,,}-enterprise-eval" )
edition="Enterprise" edition="Enterprise"
name="Windows 10 Enterprise"
url="https://go.microsoft.com/fwlink/?LinkId=841361" url="https://go.microsoft.com/fwlink/?LinkId=841361"
;; ;;
esac esac
case "${ret,,}" in case "${ret,,}" in
"url" ) echo "$url" ;; "url" ) echo "$url" ;;
"name" ) echo "$name" ;;
"edition" ) echo "$edition" ;; "edition" ) echo "$edition" ;;
*) echo "";; *) echo "";;
esac esac