mirror of
https://github.com/dockur/windows.git
synced 2025-10-29 12:15:50 +00:00
Update define.sh
This commit is contained in:
parent
66ba07e5f9
commit
da861b3467
1 changed files with 13 additions and 2 deletions
|
|
@ -221,7 +221,7 @@ printEdition() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
getName() {
|
fromFile() {
|
||||||
|
|
||||||
local id=""
|
local id=""
|
||||||
local desc="$1"
|
local desc="$1"
|
||||||
|
|
@ -283,7 +283,7 @@ getName() {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
getVersion() {
|
fromName() {
|
||||||
|
|
||||||
local id=""
|
local id=""
|
||||||
local name="$1"
|
local name="$1"
|
||||||
|
|
@ -302,6 +302,17 @@ getVersion() {
|
||||||
*"windows vista"* ) id="winvista${PLATFORM,,}" ;;
|
*"windows vista"* ) id="winvista${PLATFORM,,}" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
echo "$id"
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
getVersion() {
|
||||||
|
|
||||||
|
local id
|
||||||
|
local name="$1"
|
||||||
|
|
||||||
|
id=$(fromName "$name")
|
||||||
|
|
||||||
case "${id,,}" in
|
case "${id,,}" in
|
||||||
"win7"* | "winvista"* )
|
"win7"* | "winvista"* )
|
||||||
case "${name,,}" in
|
case "${name,,}" in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue