From c777beb001ba0b444012172e5281be6cac7381bc Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 5 May 2024 20:55:35 +0200 Subject: [PATCH] Update install.sh --- src/install.sh | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/install.sh b/src/install.sh index 13fe740..87006ad 100644 --- a/src/install.sh +++ b/src/install.sh @@ -70,29 +70,28 @@ startInstall() { fi if [ -z "$CUSTOM" ]; then - rm -f "$ISO" + + BOOT="$ISO" + ISO=$(basename "$ISO") + ISO="$TMP/$ISO" + else + if [ -n "$ORIGINAL" ]; then rm -f "$ISO" ISO="$ORIGINAL" CUSTOM="$ISO" fi - fi - rm -rf "$TMP" - mkdir -p "$TMP" - - if [ -n "$CUSTOM" ]; then local size size="$(stat -c%s "$ISO")" BOOT="$STORAGE/windows.$size.iso" - else - BOOT="$ISO" - ISO=$(basename "$ISO") - ISO="$TMP/$ISO" + fi rm -f "$BOOT" + rm -rf "$TMP" + mkdir -p "$TMP" return 0 } @@ -195,7 +194,6 @@ detectCustom() { CUSTOM="$base" ORIGINAL="$file" else - REMOVE="N" CUSTOM="$file" rm -f "$base" fi