feat: Centralize platform and image state checks (#2139)

This commit is contained in:
Kroese
2026-08-14 11:46:00 +02:00
committed by GitHub
parent 39862b25b5
commit 1066895aca
6 changed files with 24 additions and 19 deletions
+2 -2
View File
@@ -320,7 +320,7 @@ downloadWindowsEval() {
type="iot"
winVer="windows-11-iot-enterprise-ltsc-eval" ;;
"win11${PLATFORM,,}-enterprise-ltsc-eval" )
if [[ "${PLATFORM,,}" == "arm64" ]]; then
if isPlatform "arm64"; then
type="iot"
winVer="windows-11-iot-enterprise-ltsc-eval"
else
@@ -595,7 +595,7 @@ getWindows() {
"win11${PLATFORM,,}-enterprise"* ) ;;
* )
if [[ "${PLATFORM,,}" != "x64" ]]; then
if ! isPlatform "x64"; then
error "No download for the ${PLATFORM^^} platform available for $edition!"
MIDO_URL=""
return 1