From fe25fd5676edee05fc9d8b490e79b35e0590dfd7 Mon Sep 17 00:00:00 2001 From: soumenganguly Date: Wed, 22 Apr 2015 13:20:55 +0530 Subject: Fixed recovery.sh version0.1 --- reinstall-recovery/recovery.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'reinstall-recovery') diff --git a/reinstall-recovery/recovery.sh b/reinstall-recovery/recovery.sh index 6064867..656b454 100644 --- a/reinstall-recovery/recovery.sh +++ b/reinstall-recovery/recovery.sh @@ -110,7 +110,8 @@ installation() #Insert progress bar here. #Check the no. of partitions on the SD card. 1?regular-backup!incremental-backup. - part_no_two=$(ls /dev/mmcblk0* | echo $part_no_two | cut -d' ' -f3) #Check for the second partition on the SD card. + part_no_two=$(ls /dev/mmcblk0*) + part_no_two=$(echo $part_no_two | cut -d' ' -f3) #Check for the second partition on the SD card. if [ $part_no_two ='' ]; then sh /mnt/bar /sd_card/fossee-os.tar.gz | tar xzpf - -C /nand_previous sync -- cgit