Skip to content

Commit

Permalink
fix: Remove size check
Browse files Browse the repository at this point in the history
fix: Remove size check
  • Loading branch information
kroese authored Nov 16, 2023
2 parents 0ff5efe + 2f2994f commit a8c20ea
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 @@ -119,19 +119,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 a8c20ea

Please sign in to comment.