fix: Verify files are not empty

This commit is contained in:
Kroese 2024-04-16 16:16:05 +02:00 committed by GitHub
parent 68d02a6979
commit 793e558949
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1080,7 +1080,8 @@ if ! startInstall; then
return 0
fi
if [ ! -f "$ISO" ]; then
if [ ! -s "$ISO" ]; then
rm -f "$ISO"
if ! downloadImage "$ISO" "$VERSION"; then
error "Failed to download $VERSION"
exit 61