From ff4bd4da28fceaa5bc1f285b53f07eb97938624c Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 22 Apr 2024 00:43:43 +0200 Subject: [PATCH] fix: Skip install when .boot file exists --- src/install.sh | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/install.sh b/src/install.sh index 403ee30..d09af88 100644 --- a/src/install.sh +++ b/src/install.sh @@ -294,6 +294,13 @@ startInstall() { html "Starting Windows..." + [ -z "$MANUAL" ] && MANUAL="N" + + if skipInstall; then + BASE="" + return 1 + fi + if [ -f "$STORAGE/$CUSTOM" ]; then EXTERNAL="Y" @@ -322,8 +329,6 @@ startInstall() { fi fi - [ -z "$MANUAL" ] && MANUAL="N" - if [ -f "$STORAGE/$BASE" ]; then # Check if the ISO was already processed by our script @@ -342,13 +347,6 @@ startInstall() { EXTERNAL="Y" CUSTOM="$BASE" - else - - if skipInstall; then - BASE="" - return 1 - fi - fi rm -rf "$TMP"