From 3b958fffe15b2e6922689833adc699fe0c0e0822 Mon Sep 17 00:00:00 2001 From: Marcus Kempe Date: Sat, 15 Feb 2014 13:37:34 +0100 Subject: [PATCH] Fixed error when FDISK in check_mmc() returns multiple matches. --- mk_mmc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 858e52f..05b4448 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1268,7 +1268,7 @@ populate_boot () { } check_mmc () { - FDISK=$(LC_ALL=C fdisk -l 2>/dev/null | grep "Disk ${media}" | awk '{print $2}') + FDISK=$(LC_ALL=C fdisk -l 2>/dev/null | grep "Disk ${media}[^(a-z,A-Z,0-9)]" | awk '{print $2}') if [ "x${FDISK}" = "x${media}:" ] ; then echo ""