diff options
-rwxr-xr-x | drakwizard.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drakwizard.pl b/drakwizard.pl index c3b625c7..cc266ed2 100755 --- a/drakwizard.pl +++ b/drakwizard.pl @@ -58,9 +58,9 @@ my %wiz = ( foreach my $file (glob_("$::Wiz_more_dir/*.conf")) { - next unless -f "$file"; + next unless -f $file; my %tmp=getVarsFromSh($file); - $wiz{lc($file)}= [ $tmp{'NAME'}, $tmp{'DESCRIPTION'} ]; + $wiz{lc($file)} = [ $tmp{NAME}, $tmp{DESCRIPTION} ]; } @ARGV = grep { ! /^--/ } @ARGV; @@ -82,10 +82,10 @@ if ($err) { $in->exit; } -$::in = $in; if ($wiz->{o}{use_new_data_structure}) { require wizards; my $wizard = wizards->new; + $::in = $in; $wizard->safe_process($wiz->{o}, $in); } else { wizard($wiz->{o}); |