From de94d208af1d8ff59b9ffb757ad0ff0c9cd12ba6 Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 3 Aug 2026 04:04:23 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/src/install.sh b/src/install.sh index 23cef87e..329829ce 100644 --- a/src/install.sh +++ b/src/install.sh @@ -39,16 +39,30 @@ startWindows() { else - if ! extractImage "$ISO" "$dir" "$VERSION"; then - removeIso "$ISO" && return 74 - fi + local detect_rc=0 + detectIsoImage "$ISO" || detect_rc=$? - extracted=1 + case "$detect_rc" in - if ! detectImage "$dir"; then - abortInstall "$dir" "$ISO" "$boot" || return 76 - return 0 - fi + 0 ) ;; + 1 ) + + if ! extractImage "$ISO" "$dir" "$VERSION"; then + removeIso "$ISO" && return 74 + fi + + extracted=1 + + if ! detectImage "$dir"; then + abortInstall "$dir" "$ISO" "$boot" || return 76 + return 0 + fi ;; + + * ) + abortInstall "$dir" "$ISO" "$boot" || return 76 + return 0 ;; + + esac fi