From e0dad067ae5af5ff4298a3ddc683c6fc3cec3799 Mon Sep 17 00:00:00 2001 From: Caio Begotti Date: Mon, 10 Nov 2008 19:30:49 +0000 Subject: 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) --- rescue/restore-image.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rescue') 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 } -- cgit v1.2.1