feat: Improve ISO detection

This commit is contained in:
Kroese 2024-12-14 13:02:32 +01:00 committed by GitHub
parent c82725ec61
commit 07e943ee56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -502,7 +502,10 @@ fromFile() {
local file="${1,,}" local file="${1,,}"
local arch="${PLATFORM,,}" local arch="${PLATFORM,,}"
case "${file// /_}" in file="${file//-/_}"
file="${file// /_}"
case "$file" in
*"_x64_"* | *"_x64."*) *"_x64_"* | *"_x64."*)
arch="x64" arch="x64"
;; ;;
@ -517,7 +520,7 @@ fromFile() {
local add="" local add=""
[[ "$arch" != "x64" ]] && add="$arch" [[ "$arch" != "x64" ]] && add="$arch"
case "${file// /_}" in case "$file" in
"win7"* | "win_7"* | *"windows7"* | *"windows_7"* ) "win7"* | "win_7"* | *"windows7"* | *"windows_7"* )
id="win7${arch}" id="win7${arch}"
;; ;;