mirror of
https://github.com/dockur/windows.git
synced 2024-11-25 16:15:42 +00:00
feat: Windows Server support (#124)
This commit is contained in:
parent
cf033a03ca
commit
8207169089
@ -98,6 +98,8 @@ printVersion() {
|
|||||||
[[ "$id" == "win2022"* ]] && desc="Windows Server 2022"
|
[[ "$id" == "win2022"* ]] && desc="Windows Server 2022"
|
||||||
[[ "$id" == "win2019"* ]] && desc="Windows Server 2019"
|
[[ "$id" == "win2019"* ]] && desc="Windows Server 2019"
|
||||||
[[ "$id" == "win2016"* ]] && desc="Windows Server 2016"
|
[[ "$id" == "win2016"* ]] && desc="Windows Server 2016"
|
||||||
|
[[ "$id" == "win2012"* ]] && desc="Windows Server 2012"
|
||||||
|
[[ "$id" == "win2008"* ]] && desc="Windows Server 2008"
|
||||||
[[ "$id" == "win10x64-ltsc" ]] && desc="Windows 10 LTSC"
|
[[ "$id" == "win10x64-ltsc" ]] && desc="Windows 10 LTSC"
|
||||||
|
|
||||||
echo "$desc"
|
echo "$desc"
|
||||||
@ -358,6 +360,8 @@ getVersion() {
|
|||||||
[[ "${name,,}" == *"server 2022"* ]] && detected="win2022-eval"
|
[[ "${name,,}" == *"server 2022"* ]] && detected="win2022-eval"
|
||||||
[[ "${name,,}" == *"server 2019"* ]] && detected="win2019-eval"
|
[[ "${name,,}" == *"server 2019"* ]] && detected="win2019-eval"
|
||||||
[[ "${name,,}" == *"server 2016"* ]] && detected="win2016-eval"
|
[[ "${name,,}" == *"server 2016"* ]] && detected="win2016-eval"
|
||||||
|
[[ "${name,,}" == *"server 2012"* ]] && detected="win2012-eval"
|
||||||
|
[[ "${name,,}" == *"server 2008"* ]] && detected="win2008-eval"
|
||||||
|
|
||||||
if [[ "${name,,}" == *"windows 10"* ]]; then
|
if [[ "${name,,}" == *"windows 10"* ]]; then
|
||||||
if [[ "${name,,}" == *"ltsc"* ]]; then
|
if [[ "${name,,}" == *"ltsc"* ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user