From 793e558949000952d9bac811f3d4328a26320cf5 Mon Sep 17 00:00:00 2001 From: Kroese Date: Tue, 16 Apr 2024 16:16:05 +0200 Subject: [PATCH] fix: Verify files are not empty --- src/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/install.sh b/src/install.sh index ef09848..1878967 100644 --- a/src/install.sh +++ b/src/install.sh @@ -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