From 561dc940c295b95ec994cc1a4e354ebc401ad0f2 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 12 Nov 2008 10:20:43 +0000 Subject: fix indentation --- rescue/restore-image.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'rescue') diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index 70a7cab89..8eb564284 100755 --- a/rescue/restore-image.sh +++ b/rescue/restore-image.sh @@ -185,13 +185,13 @@ function expand_fs() parted $disk -- mkpartfs primary linux-swap ${main_part_sectors}s -1s yes mkswap -L swap $swap_part fi - mkdir -p $mnt_dir - mount $main_part $mnt_dir - grub_dir="$mnt_dir/boot/grub" - if [ -d "$grub_dir" ]; then - echo "(hd0) $disk" > "$grub_dir/device.map" - fi - umount $mnt_dir + mkdir -p $mnt_dir + mount $main_part $mnt_dir + grub_dir="$mnt_dir/boot/grub" + if [ -d "$grub_dir" ]; then + echo "(hd0) $disk" > "$grub_dir/device.map" + fi + umount $mnt_dir fi } -- cgit v1.2.1