mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 20:25:49 +00:00
Update define.sh
This commit is contained in:
parent
242eee4e3a
commit
8f5488d900
1 changed files with 3 additions and 1 deletions
|
|
@ -11,12 +11,14 @@ MIRRORS=5
|
||||||
|
|
||||||
parseVersion() {
|
parseVersion() {
|
||||||
|
|
||||||
[ -z "$VERSION" ] && VERSION="win11"
|
VERSION="${VERSION/\//}"
|
||||||
|
|
||||||
if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then
|
if [[ "${VERSION}" == \"*\" || "${VERSION}" == \'*\' ]]; then
|
||||||
VERSION="${VERSION:1:-1}"
|
VERSION="${VERSION:1:-1}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ -z "$VERSION" ] && VERSION="win11"
|
||||||
|
|
||||||
case "${VERSION,,}" in
|
case "${VERSION,,}" in
|
||||||
"11" | "win11" | "windows11" | "windows 11" )
|
"11" | "win11" | "windows11" | "windows 11" )
|
||||||
VERSION="win11${PLATFORM,,}"
|
VERSION="win11${PLATFORM,,}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue