From 40e25d1bbf95f7fc565c82d6b2701f4b4e7ded4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Tue, 29 Mar 2022 14:09:53 +0200 Subject: [PATCH] card-helpers.inc: avoid incorrect size calculations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This popped up when setting BITBAKE_TMPDIR Signed-off-by: Andreas Müller --- scripts/include/card-helpers.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/include/card-helpers.inc b/scripts/include/card-helpers.inc index 433f71b..681cc96 100644 --- a/scripts/include/card-helpers.inc +++ b/scripts/include/card-helpers.inc @@ -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