diff options
author | Olivier Blin <oblin@mandriva.org> | 2005-12-27 13:54:51 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.org> | 2005-12-27 13:54:51 +0000 |
commit | 58376ea75442706df876f48e4ece6e7cda3a37b4 (patch) | |
tree | 183c87568cc0fb301d5f69f1a0624094d00bc5e5 | |
parent | e996c2ca413a4c88283f7ff2511ce51816b0d3c6 (diff) | |
download | drakx-backup-do-not-use-58376ea75442706df876f48e4ece6e7cda3a37b4.tar drakx-backup-do-not-use-58376ea75442706df876f48e4ece6e7cda3a37b4.tar.gz drakx-backup-do-not-use-58376ea75442706df876f48e4ece6e7cda3a37b4.tar.bz2 drakx-backup-do-not-use-58376ea75442706df876f48e4ece6e7cda3a37b4.tar.xz drakx-backup-do-not-use-58376ea75442706df876f48e4ece6e7cda3a37b4.zip |
fix stupid mistake
-rwxr-xr-x | tools/draklive | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/draklive b/tools/draklive index b2245b0d7..b6c607328 100755 --- a/tools/draklive +++ b/tools/draklive @@ -721,10 +721,9 @@ sub copy_wizard { format => sub { $_[0]->{formatted_name} } }, { text => N("Format selected device"), val => \$format, type => 'bool' } ], complete => sub { - unless (defined $device) { - $in->ask_warn(N("Error"), N("You must select a device!")); - return 1; - } + return 0 if defined $device; + $in->ask_warn(N("Error"), N("You must select a device!")); + 1; }, post => sub { my $media = { media => { storage => $storage, device => '/dev/' . $device->{device} } }; |