Corrected device name in free space check

This commit is contained in:
CosmicScale 2025-03-02 19:57:23 +00:00
parent 0336556f45
commit 4958bd4226

View File

@ -606,7 +606,7 @@ echo | tee -a "${LOG_FILE}"
echo "Size of local POPS folder: ${POPS_SIZE} MB" | tee -a "${LOG_FILE}" echo "Size of local POPS folder: ${POPS_SIZE} MB" | tee -a "${LOG_FILE}"
# Get the POPS partition size in MB # Get the POPS partition size in MB
POPS_PARTITION=$(sudo "${HELPER_DIR}/HDL Dump.elf" toc /dev/sdf | grep __.POPS | awk '{print $4}' | grep -oE '[0-9]+') POPS_PARTITION=$(sudo "${HELPER_DIR}/HDL Dump.elf" toc ${DEVICE} | grep __.POPS | awk '{print $4}' | grep -oE '[0-9]+')
echo "Size of POPS partition: ${POPS_PARTITION} MB"| tee -a "${LOG_FILE}" echo "Size of POPS partition: ${POPS_PARTITION} MB"| tee -a "${LOG_FILE}"