summaryrefslogtreecommitdiffstats
path: root/rescue/restore-image.sh
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-11-12 10:20:43 +0000
committerOlivier Blin <oblin@mandriva.com>2008-11-12 10:20:43 +0000
commit561dc940c295b95ec994cc1a4e354ebc401ad0f2 (patch)
treee6e809a7bbe4b8dd87382c01317a69f44d919997 /rescue/restore-image.sh
parentbc6dec9b571f4adac09bd772476be0165695cd88 (diff)
downloaddrakx-561dc940c295b95ec994cc1a4e354ebc401ad0f2.tar
drakx-561dc940c295b95ec994cc1a4e354ebc401ad0f2.tar.gz
drakx-561dc940c295b95ec994cc1a4e354ebc401ad0f2.tar.bz2
drakx-561dc940c295b95ec994cc1a4e354ebc401ad0f2.tar.xz
drakx-561dc940c295b95ec994cc1a4e354ebc401ad0f2.zip
fix indentation
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-xrescue/restore-image.sh14
1 files changed, 7 insertions, 7 deletions
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
}