summaryrefslogtreecommitdiffstats
path: root/rescue/restore-image.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-xrescue/restore-image.sh4
1 files changed, 2 insertions, 2 deletions
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