summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoumenganguly2015-04-22 13:20:55 +0530
committersoumenganguly2015-04-22 13:20:55 +0530
commitfe25fd5676edee05fc9d8b490e79b35e0590dfd7 (patch)
tree1f4fdbe22e65ba48387df00494629d32d37c53d7
parent003c1a570d419abf95e391b034987402c9bf658b (diff)
downloadFOSSEE-netbook-tools-fe25fd5676edee05fc9d8b490e79b35e0590dfd7.tar.gz
FOSSEE-netbook-tools-fe25fd5676edee05fc9d8b490e79b35e0590dfd7.tar.bz2
FOSSEE-netbook-tools-fe25fd5676edee05fc9d8b490e79b35e0590dfd7.zip
Fixed recovery.sh version0.1
-rw-r--r--reinstall-recovery/recovery.sh3
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