From c015ef90eb4cd20792090e0843994c746570f885 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sun, 4 Feb 2024 18:48:40 +0100 Subject: [PATCH] Update install.sh --- src/install.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/install.sh b/src/install.sh index 4d6ca50..040c884 100644 --- a/src/install.sh +++ b/src/install.sh @@ -298,14 +298,12 @@ downloadImage() { local iso="$1" local url="$2" - local file="$iso" local desc rc progress rm -f "$iso" if [[ "$EXTERNAL" != [Yy1]* ]]; then - file="$iso" desc=$(printVersion "$VERSION") [ -z "$desc" ] && desc="Windows" @@ -318,9 +316,7 @@ downloadImage() { if [[ "$EXTERNAL" != [Yy1]* ]]; then - rm -f "$file" - - if ! getESD "$TMP/esd" "$file"; then + if ! getESD "$TMP/esd" "$iso"; then return 1 fi @@ -331,7 +327,7 @@ downloadImage() { local msg="Downloading $desc..." info "$msg" && html "$msg" - /run/progress.sh "$file" "Downloading $desc ([P])..." & + /run/progress.sh "$iso" "Downloading $desc ([P])..." & # Check if running with interactive TTY or redirected to docker log if [ -t 1 ]; then