summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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} } };