Merge pull request #28 from plopp/FDISK_multiple_row_fix

Fixed error when FDISK in check_mmc() returns multiple matches.
pull/29/head
Robert Nelson 11 years ago
commit 7f85162ef5

@ -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 ""

Loading…
Cancel
Save