Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Feb 4, 2024
1 parent ee957f1 commit c015ef9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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

Expand All @@ -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
Expand Down

0 comments on commit c015ef9

Please sign in to comment.