diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2004-06-30 05:24:04 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2004-06-30 05:24:04 +0000 |
commit | fcfc58c6d7c607a951006a96a96092562a896c30 (patch) | |
tree | 1efd1b27a1e184a5a09eda3c0804a30f77a9fdab | |
parent | 39cdf57c2c48ca0eb8e3677799255c4f219ad22e (diff) | |
download | drakx-fcfc58c6d7c607a951006a96a96092562a896c30.tar drakx-fcfc58c6d7c607a951006a96a96092562a896c30.tar.gz drakx-fcfc58c6d7c607a951006a96a96092562a896c30.tar.bz2 drakx-fcfc58c6d7c607a951006a96a96092562a896c30.tar.xz drakx-fcfc58c6d7c607a951006a96a96092562a896c30.zip |
display a nicer error message when disk is not found
-rwxr-xr-x | globetrotter/make_live | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/globetrotter/make_live b/globetrotter/make_live index cb81d5615..f0a7ba095 100755 --- a/globetrotter/make_live +++ b/globetrotter/make_live @@ -59,6 +59,7 @@ sub get_hds() { my $all_hds = fsedit::get_hds(); my $other; ($all_hds->{hds}, $other) = partition { $_->{usb_description} eq 'LaCie|LaCie Hard Drive USB' } @{$all_hds->{hds}}; + die "I did not found any LaCie disk\n" if !$all_hds->{hds}[0]; $all_hds, $all_hds->{hds}[0]; # $other } |