fix: Refactor variable declaration

This commit is contained in:
Kroese 2025-09-17 16:08:21 +02:00 committed by GitHub
parent e505eb0030
commit cfc053a62c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@ skipInstall() {
local iso="$1" local iso="$1"
local method="" local method=""
local dir magic byte local magic byte
local boot="$STORAGE/windows.boot" local boot="$STORAGE/windows.boot"
local previous="$STORAGE/windows.base" local previous="$STORAGE/windows.base"
@ -46,7 +46,7 @@ skipInstall() {
info "Detected that $method, creating a backup of your previous installation..." info "Detected that $method, creating a backup of your previous installation..."
dir="$STORAGE/${previous%.*}.old" local dir="$STORAGE/${previous%.*}.old"
rm -rf "$dir" rm -rf "$dir"
mkdir -p "$dir" mkdir -p "$dir"