mirror of
https://github.com/dockur/windows.git
synced 2025-10-27 03:15:49 +00:00
fix: Refactor variable declaration
This commit is contained in:
parent
e505eb0030
commit
cfc053a62c
1 changed files with 2 additions and 2 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue