mirror of
https://github.com/dockur/windows.git
synced 2025-10-28 03:45:48 +00:00
fix: Print URL when download fails
This commit is contained in:
parent
60c98cf402
commit
f404201f3d
1 changed files with 1 additions and 1 deletions
|
|
@ -548,7 +548,7 @@ downloadFile() {
|
||||||
if (( rc == 0 )) && [ -f "$iso" ]; then
|
if (( rc == 0 )) && [ -f "$iso" ]; then
|
||||||
total=$(stat -c%s "$iso")
|
total=$(stat -c%s "$iso")
|
||||||
if [ "$total" -lt 100000000 ]; then
|
if [ "$total" -lt 100000000 ]; then
|
||||||
error "Downloaded ISO is only $total bytes?" && return 1
|
error "Downloaded file $url is only $total bytes?" && return 1
|
||||||
fi
|
fi
|
||||||
! verifyFile "$iso" "$size" "$total" "$sum" && return 1
|
! verifyFile "$iso" "$size" "$total" "$sum" && return 1
|
||||||
html "Download finished successfully..." && return 0
|
html "Download finished successfully..." && return 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue