Update define.sh

This commit is contained in:
Kroese 2024-05-03 12:46:43 +02:00 committed by GitHub
parent 66ba07e5f9
commit da861b3467
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -221,7 +221,7 @@ printEdition() {
return 0
}
getName() {
fromFile() {
local id=""
local desc="$1"
@ -283,7 +283,7 @@ getName() {
return 0
}
getVersion() {
fromName() {
local id=""
local name="$1"
@ -302,6 +302,17 @@ getVersion() {
*"windows vista"* ) id="winvista${PLATFORM,,}" ;;
esac
echo "$id"
return 0
}
getVersion() {
local id
local name="$1"
id=$(fromName "$name")
case "${id,,}" in
"win7"* | "winvista"* )
case "${name,,}" in