fix: Print URL when download fails

This commit is contained in:
Kroese 2024-08-18 16:44:44 +02:00 committed by GitHub
parent 60c98cf402
commit f404201f3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -548,7 +548,7 @@ downloadFile() {
if (( rc == 0 )) && [ -f "$iso" ]; then
total=$(stat -c%s "$iso")
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
! verifyFile "$iso" "$size" "$total" "$sum" && return 1
html "Download finished successfully..." && return 0