summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-12-27 13:54:51 +0000
committerOlivier Blin <oblin@mandriva.org>2005-12-27 13:54:51 +0000
commit58376ea75442706df876f48e4ece6e7cda3a37b4 (patch)
tree183c87568cc0fb301d5f69f1a0624094d00bc5e5 /tools
parente996c2ca413a4c88283f7ff2511ce51816b0d3c6 (diff)
downloaddrakx-58376ea75442706df876f48e4ece6e7cda3a37b4.tar
drakx-58376ea75442706df876f48e4ece6e7cda3a37b4.tar.gz
drakx-58376ea75442706df876f48e4ece6e7cda3a37b4.tar.bz2
drakx-58376ea75442706df876f48e4ece6e7cda3a37b4.tar.xz
drakx-58376ea75442706df876f48e4ece6e7cda3a37b4.zip
fix stupid mistake
Diffstat (limited to 'tools')
-rwxr-xr-xtools/draklive7
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} } };