sdcard script: before using LC_ALL=C we checked for multiple language translations of Disk, remove old []s

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
Reported-by: Robert P. J. Day <rpjday@crashcourse.ca>
pull/8/head
Robert Nelson 13 years ago
parent 21bb8cca5d
commit 05140fcbfd

@ -1417,14 +1417,14 @@ function reset_scripts {
function check_mmc { 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:-" if test "-$FDISK-" = "-$MMC:-"
then then
echo "" echo ""
echo "I see..." echo "I see..."
echo "fdisk -l:" 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 ""
echo "mount:" echo "mount:"
mount | grep -v none | grep "/dev/" --color=never 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 "Are you sure? I Don't see [${MMC}], here is what I do see..."
echo "" echo ""
echo "fdisk -l:" 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 ""
echo "mount:" echo "mount:"
mount | grep -v none | grep "/dev/" --color=never mount | grep -v none | grep "/dev/" --color=never

Loading…
Cancel
Save