summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaio Begotti <caio1982@mandriva.org>2008-11-10 19:30:49 +0000
committerCaio Begotti <caio1982@mandriva.org>2008-11-10 19:30:49 +0000
commite0dad067ae5af5ff4298a3ddc683c6fc3cec3799 (patch)
tree20f172e09d94c177d2329a2761379a768e46e422
parent5945a24cd0b270790d276b071898e62296cb36e6 (diff)
downloaddrakx-backup-do-not-use-e0dad067ae5af5ff4298a3ddc683c6fc3cec3799.tar
drakx-backup-do-not-use-e0dad067ae5af5ff4298a3ddc683c6fc3cec3799.tar.gz
drakx-backup-do-not-use-e0dad067ae5af5ff4298a3ddc683c6fc3cec3799.tar.bz2
drakx-backup-do-not-use-e0dad067ae5af5ff4298a3ddc683c6fc3cec3799.tar.xz
drakx-backup-do-not-use-e0dad067ae5af5ff4298a3ddc683c6fc3cec3799.zip
we should not echo an empty root variable if there's nothing inside it (if -gt 2 already assures there's at least one device present)
-rwxr-xr-xrescue/restore-image.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh
index dfe173fa7..3776f9222 100755
--- a/rescue/restore-image.sh
+++ b/rescue/restore-image.sh
@@ -91,11 +91,10 @@ function detect_root()
echo "$root"
else
- _msgbox "\nError writing image: disk device not detected\n"
+ _msgbox "\nError writing image: disk device not detected.\n"
fi
else
- root=$(echo $devices | cut -d ' ' -f 1)
- echo "$root"
+ _msgbox "\nError writing image: disk device not detected.\n"
fi
}