From 558ab47ceab69c8fb7cc73e3f99b2d9c6234dabf Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 16 May 2024 19:54:32 +0200 Subject: [PATCH] feat: Refactor download code --- src/install.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/install.sh b/src/install.sh index 283e36f..58a555d 100644 --- a/src/install.sh +++ b/src/install.sh @@ -209,17 +209,6 @@ detectCustom() { return 0 } -removeDownload() { - - local iso="$1" - - [ ! -f "$iso" ] && return 0 - [ -n "$CUSTOM" ] && return 0 - ! rm -f "$iso" 2> /dev/null && warn "failed to remove $iso !" - - return 0 -} - extractESD() { local iso="$1" @@ -684,6 +673,17 @@ updateImage() { return 0 } +removeDownload() { + + local iso="$1" + + [ ! -f "$iso" ] && return 0 + [ -n "$CUSTOM" ] && return 0 + ! rm -f "$iso" 2> /dev/null && warn "failed to remove $iso !" + + return 0 +} + copyOEM() { local dir="$1"