diff options
author | Caio Begotti <caio1982@mandriva.org> | 2008-11-10 19:30:49 +0000 |
---|---|---|
committer | Caio Begotti <caio1982@mandriva.org> | 2008-11-10 19:30:49 +0000 |
commit | e0dad067ae5af5ff4298a3ddc683c6fc3cec3799 (patch) | |
tree | 20f172e09d94c177d2329a2761379a768e46e422 /rescue/restore-image.sh | |
parent | 5945a24cd0b270790d276b071898e62296cb36e6 (diff) | |
download | drakx-e0dad067ae5af5ff4298a3ddc683c6fc3cec3799.tar drakx-e0dad067ae5af5ff4298a3ddc683c6fc3cec3799.tar.gz drakx-e0dad067ae5af5ff4298a3ddc683c6fc3cec3799.tar.bz2 drakx-e0dad067ae5af5ff4298a3ddc683c6fc3cec3799.tar.xz drakx-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)
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-x | rescue/restore-image.sh | 5 |
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 } |