mirror of
https://github.com/dockur/windows.git
synced 2025-04-23 17:12:52 +00:00
Update mido.sh
This commit is contained in:
parent
2bacbac1f9
commit
33b08e250e
@ -569,7 +569,7 @@ downloadFile() {
|
|||||||
total=$(stat -c%s "$iso")
|
total=$(stat -c%s "$iso")
|
||||||
total_gb=$(formatBytes "$total")
|
total_gb=$(formatBytes "$total")
|
||||||
if [ "$total" -lt 100000000 ]; then
|
if [ "$total" -lt 100000000 ]; then
|
||||||
error "Invalid download link: $url (is only $total_gb ?). Please report this at $SUPPORT/issues." && return 1
|
error "Invalid download link: $url (is only $total_gb ?). Please report this at $SUPPORT/issues" && return 1
|
||||||
fi
|
fi
|
||||||
verifyFile "$iso" "$size" "$total" "$sum" || return 1
|
verifyFile "$iso" "$size" "$total" "$sum" || return 1
|
||||||
isCompressed "$url" && UNPACK="Y"
|
isCompressed "$url" && UNPACK="Y"
|
||||||
@ -579,7 +579,7 @@ downloadFile() {
|
|||||||
msg="Failed to download $url"
|
msg="Failed to download $url"
|
||||||
(( rc == 3 )) && error "$msg , cannot write file (disk full?)" && return 1
|
(( rc == 3 )) && error "$msg , cannot write file (disk full?)" && return 1
|
||||||
(( rc == 4 )) && error "$msg , network failure!" && return 1
|
(( rc == 4 )) && error "$msg , network failure!" && return 1
|
||||||
(( rc == 8 )) && error "$msg , server issued an error response! Please report this at $SUPPORT/issues." && return 1
|
(( rc == 8 )) && error "$msg , server issued an error response! Please report this at $SUPPORT/issues" && return 1
|
||||||
|
|
||||||
error "$msg , reason: $rc"
|
error "$msg , reason: $rc"
|
||||||
return 1
|
return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user