mirror of
https://github.com/dockur/windows.git
synced 2025-06-25 17:07:47 +00:00
feat: Improve ISO detection
This commit is contained in:
parent
c82725ec61
commit
07e943ee56
@ -501,8 +501,11 @@ fromFile() {
|
||||
local desc="$1"
|
||||
local file="${1,,}"
|
||||
local arch="${PLATFORM,,}"
|
||||
|
||||
file="${file//-/_}"
|
||||
file="${file// /_}"
|
||||
|
||||
case "${file// /_}" in
|
||||
case "$file" in
|
||||
*"_x64_"* | *"_x64."*)
|
||||
arch="x64"
|
||||
;;
|
||||
@ -517,7 +520,7 @@ fromFile() {
|
||||
local add=""
|
||||
[[ "$arch" != "x64" ]] && add="$arch"
|
||||
|
||||
case "${file// /_}" in
|
||||
case "$file" in
|
||||
"win7"* | "win_7"* | *"windows7"* | *"windows_7"* )
|
||||
id="win7${arch}"
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user