diff options
-rw-r--r-- | reinstall-recovery/recovery.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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 |