fix: bashism fix breakage

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/22/head
Robert Nelson 12 years ago
parent c89c60db6a
commit ffcfd07743

@ -1112,7 +1112,8 @@ unmount_all_drive_partitions () {
NUM_MOUNTS=$(mount | grep -v none | grep "$MMC" | wc -l) NUM_MOUNTS=$(mount | grep -v none | grep "$MMC" | wc -l)
for (i=1;i<=${NUM_MOUNTS};i++) ## for (i=1;i<=${NUM_MOUNTS};i++)
for ((i=1;i<=${NUM_MOUNTS};i++ ))
do do
DRIVE=$(mount | grep -v none | grep "$MMC" | tail -1 | awk '{print $1}') DRIVE=$(mount | grep -v none | grep "$MMC" | tail -1 | awk '{print $1}')
umount ${DRIVE} >/dev/null 2>&1 || true umount ${DRIVE} >/dev/null 2>&1 || true
@ -1417,7 +1418,7 @@ check_mmc () {
read response read response
if [ "x${response}" != "xy" ] ; then if [ "x${response}" != "xy" ] ; then
exit exit
} fi
echo "" echo ""
else else
echo "" echo ""
@ -1719,7 +1720,7 @@ check_distro () {
read response read response
if [ "x${response}" != "xy" ] ; then if [ "x${response}" != "xy" ] ; then
exit exit
} fi
;; ;;
squeeze) squeeze)
DIST="squeeze" DIST="squeeze"
@ -1836,7 +1837,7 @@ while [ ! -z "$1" ] ; do
--mmc) --mmc)
checkparm $2 checkparm $2
MMC="$2" MMC="$2"
if [ "${MMC}" =~ "mmcblk" ] ; then if [[ "${MMC}" =~ "mmcblk" ]] ; then
PARTITION_PREFIX="p" PARTITION_PREFIX="p"
fi fi
check_root check_root

Loading…
Cancel
Save