diff options
Diffstat (limited to 'rescue/restore-image.sh')
-rwxr-xr-x | rescue/restore-image.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/rescue/restore-image.sh b/rescue/restore-image.sh index 5d807c4ab..dade72dee 100755 --- a/rescue/restore-image.sh +++ b/rescue/restore-image.sh @@ -97,13 +97,14 @@ function detect_root() fi else root=$opcao - fi - - echo "$root" + fi else _msgbox "\nError writing image: disk device not detected.\n" fi + else + root=$(echo $devices | cut -d ' ' -f 1) fi + echo "$root" } function write_image() |