From 1341062f0cbbe1155fbf5e9f96786fdda2054b75 Mon Sep 17 00:00:00 2001 From: Kroese Date: Thu, 16 Nov 2023 23:04:11 +0100 Subject: [PATCH] fix: Remove size check --- src/disk.sh | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/disk.sh b/src/disk.sh index b2f1d371..f5307446 100644 --- a/src/disk.sh +++ b/src/disk.sh @@ -110,19 +110,6 @@ addDisk () { fi fi - - # Check if file exists - if [ ! -f "${DISK_FILE}" ]; then - error "File for ${DISK_DESC} ($DISK_FILE) does not exist!" && exit 88 - fi - - fi - - # Check the filesize - SIZE=$(stat -c%s "${DISK_FILE}") - - if [[ SIZE -ne DATA_SIZE ]]; then - error "File for ${DISK_DESC} (${DISK_FILE}) has the wrong size: ${SIZE} bytes" && exit 89 fi DISK_OPTS="${DISK_OPTS} \