fix: Remove size check
fix: Remove size check
This commit is contained in:
commit
dce5e40d88
1 changed files with 0 additions and 13 deletions
13
src/disk.sh
13
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} \
|
||||
|
|
Loading…
Reference in a new issue