card-helpers.inc: avoid incorrect size calculations

This popped up when setting BITBAKE_TMPDIR

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2022-03-29 14:09:53 +02:00
parent 7a3b2d6fb6
commit dae8b7c6bd

View File

@@ -83,7 +83,8 @@ SelectCardDevice() {
ErrorOut 'Cancel selected at SelectCardDevice().'
fi
DevicePath=${DevicePathArr[$menuitem]}
DeviceSize=`lsblk --nodeps --raw --noheadings --output SIZE --bytes $dev`
DeviceSize=`lsblk --nodeps --raw --noheadings --output SIZE --bytes $DevicePath`
unset menuitem
unset menuitems
fi