From 6a2f28243ea9f8c84e78771ab2fca88b3f904545 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 11 Feb 2009 15:42:19 +0000 Subject: oops, restore device variable --- rescue/restore-image.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rescue/restore-image.sh') diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index 8a216ac8a..c6543430e 100755 --- a/rescue/restore-image.sh +++ b/rescue/restore-image.sh @@ -137,10 +137,10 @@ function detect_win32() # get the last created windows partition information set -f - first_win32_part_dev=$(fdisk -l | grep "^/dev/" | grep -v ${inst_source_dev} | grep -e "FAT\|NTFS\|HPFS" | tail -1 | sed 's/ .*$//') + device=$(fdisk -l | grep "^/dev/" | grep -v ${inst_source_dev} | grep -e "FAT\|NTFS\|HPFS" | tail -1 | sed 's/ .*$//') set +f - if [ -z "${first_win32_part_dev}" ]; then + if [ -z "${device}" ]; then exit fi -- cgit v1.2.1