Skip to content

Commit

Permalink
fix: Remove size check
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Nov 16, 2023
1 parent a79ac9c commit 1341062
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand Down

0 comments on commit 1341062

Please sign in to comment.