mirror of
https://github.com/dockur/windows.git
synced 2026-08-24 15:48:59 +01:00
feat: Simplify getVersions function (#2112)
This commit is contained in:
+6
-7
@@ -99,16 +99,15 @@ getVersions() {
|
|||||||
structured=""
|
structured=""
|
||||||
|
|
||||||
case "${candidate_base,,}" in
|
case "${candidate_base,,}" in
|
||||||
"winvista"* | "win7"* | "win8"* | "win10"* | "win11"* )
|
|
||||||
structured=$(normalizeEditionID "${edition_id:-${flags:-}}" "$candidate_base") || return 1
|
"win20"* ) structured=$(normalizeServerEditionID "${flags:-$edition_id}") || return 1
|
||||||
;;
|
|
||||||
"win20"* )
|
|
||||||
structured=$(normalizeServerEditionID "${flags:-$edition_id}") || return 1
|
|
||||||
|
|
||||||
if [[ "${install_type,,}" == *"core"* && "$structured" != *"-core" ]]; then
|
if [[ "${install_type,,}" == *"core"* && "$structured" != *"-core" ]]; then
|
||||||
structured+="-core"
|
structured+="-core"
|
||||||
fi
|
fi ;;
|
||||||
;;
|
|
||||||
|
* ) structured=$(normalizeEditionID "${edition_id:-${flags:-}}" "$candidate_base") || return 1 ;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -n "$structured" ]; then
|
if [ -n "$structured" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user