From fbd356ce3a284d5445181f70e0f40572c81da66d Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 10 Mar 2021 12:57:36 +0200 Subject: kflash: Fix flash partition label check When checking labels for flash partitions, the partition device is created with an incorrect (and unset) variable name for the partition index. Fix it. Signed-off-by: Laurent Pinchart --- kflash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kflash.sh b/kflash.sh index a83e84c..dd3a7d9 100755 --- a/kflash.sh +++ b/kflash.sh @@ -191,7 +191,7 @@ probe_device() { local part_idx=${flash_part[0]} local part_label=${flash_part[1]} - local part_dev=/dev/${partdev}${i} + local part_dev=/dev/${partdev}${part_idx} local label=$(blkid ${part_dev} -s PARTLABEL | sed 's/.*PARTLABEL="\([^"]*\)"$/\1/') if [[ $label != ${part_label} ]] ; then -- cgit v1.2.3