mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 19:55:49 +00:00
Update define.sh
This commit is contained in:
parent
9ee5264bd9
commit
c981a59f1e
1 changed files with 6 additions and 8 deletions
|
|
@ -168,18 +168,16 @@ getName() {
|
|||
[[ "${file,,}" == *"server 2022"* ]] && desc="Windows Server 2022"
|
||||
[[ "${file,,}" == *"server 2025"* ]] && desc="Windows Server 2025"
|
||||
|
||||
if [ -z "$desc" ]; then
|
||||
desc="Windows"
|
||||
if [[ "$desc" == "Windows 1"* ]] && [[ "${file,,}" == *"_iot_"* ]]; then
|
||||
desc="$desc IoT"
|
||||
else
|
||||
if [[ "$desc" == "Windows 1"* ]] && [[ "${file,,}" == *"_iot_"* ]]; then
|
||||
desc="$desc IoT"
|
||||
else
|
||||
if [[ "$desc" == "Windows 1"* ]] && [[ "${file,,}" == *"_ltsc_"* ]]; then
|
||||
desc="$desc LTSC"
|
||||
fi
|
||||
if [[ "$desc" == "Windows 1"* ]] && [[ "${file,,}" == *"_ltsc_"* ]]; then
|
||||
desc="$desc LTSC"
|
||||
fi
|
||||
fi
|
||||
|
||||
[ -z "$desc" ] && desc="Windows"
|
||||
|
||||
echo "$desc"
|
||||
return 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue