summaryrefslogtreecommitdiffstats
path: root/drakwizard.pl
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2004-07-27 07:49:13 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2004-07-27 07:49:13 +0000
commit5396cabf5ddddc0449df16a8684bf35c734613ee (patch)
treecbb4ed533089593f9946125858a3bee4e34153d3 /drakwizard.pl
parent49cf8a60fc16ecfd80d330a73d6d633e7affbbea (diff)
downloaddrakwizard-5396cabf5ddddc0449df16a8684bf35c734613ee.tar
drakwizard-5396cabf5ddddc0449df16a8684bf35c734613ee.tar.gz
drakwizard-5396cabf5ddddc0449df16a8684bf35c734613ee.tar.bz2
drakwizard-5396cabf5ddddc0449df16a8684bf35c734613ee.tar.xz
drakwizard-5396cabf5ddddc0449df16a8684bf35c734613ee.zip
perl_checker cleanups
Diffstat (limited to 'drakwizard.pl')
-rwxr-xr-xdrakwizard.pl6
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});