Update define.sh

This commit is contained in:
Kroese 2024-05-04 21:25:41 +02:00 committed by GitHub
parent 242eee4e3a
commit 8f5488d900
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -11,12 +11,14 @@ MIRRORS=5
parseVersion() {
[ -z "$VERSION" ] && VERSION="win11"
VERSION="${VERSION/\//}"
if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then
VERSION="${VERSION:1:-1}"
fi
[ -z "$VERSION" ] && VERSION="win11"
case "${VERSION,,}" in
"11" | "win11" | "windows11" | "windows 11" )
VERSION="win11${PLATFORM,,}"