From 05140fcbfd9ad658c5d7f2ff2dada416424802c6 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Tue, 21 Feb 2012 11:01:15 -0600 Subject: [PATCH] sdcard script: before using LC_ALL=C we checked for multiple language translations of Disk, remove old []s Signed-off-by: Robert Nelson Reported-by: Robert P. J. Day --- mk_mmc.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 5aa9010..efd7f56 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1417,14 +1417,14 @@ function reset_scripts { function check_mmc { - FDISK=$(LC_ALL=C fdisk -l 2>/dev/null | grep "[Disk] ${MMC}" | awk '{print $2}') + FDISK=$(LC_ALL=C fdisk -l 2>/dev/null | grep "Disk ${MMC}" | awk '{print $2}') if test "-$FDISK-" = "-$MMC:-" then echo "" echo "I see..." echo "fdisk -l:" - LC_ALL=C fdisk -l 2>/dev/null | grep "[Disk] /dev/" --color=never + LC_ALL=C fdisk -l 2>/dev/null | grep "Disk /dev/" --color=never echo "" echo "mount:" mount | grep -v none | grep "/dev/" --color=never @@ -1437,7 +1437,7 @@ function check_mmc { echo "Are you sure? I Don't see [${MMC}], here is what I do see..." echo "" echo "fdisk -l:" - LC_ALL=C fdisk -l 2>/dev/null | grep "[Disk] /dev/" --color=never + LC_ALL=C fdisk -l 2>/dev/null | grep "Disk /dev/" --color=never echo "" echo "mount:" mount | grep -v none | grep "/dev/" --color=never