mirror of
https://github.com/dockur/windows.git
synced 2024-09-29 22:13:47 +00:00
feat: Refactor download code
This commit is contained in:
parent
999d57084c
commit
558ab47cea
1 changed files with 11 additions and 11 deletions
|
@ -209,17 +209,6 @@ detectCustom() {
|
||||||
return 0
|
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() {
|
extractESD() {
|
||||||
|
|
||||||
local iso="$1"
|
local iso="$1"
|
||||||
|
@ -684,6 +673,17 @@ updateImage() {
|
||||||
return 0
|
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() {
|
copyOEM() {
|
||||||
|
|
||||||
local dir="$1"
|
local dir="$1"
|
||||||
|
|
Loading…
Reference in a new issue