summaryrefslogtreecommitdiff
path: root/kflash.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kflash.sh')
-rwxr-xr-xkflash.sh2
1 files changed, 1 insertions, 1 deletions
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