Skip to content

Commit c8553ad

Browse files
committed
check if $b{$name} is defined
1 parent a1cf119 commit c8553ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg.pl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,14 @@ sub createIDX {
115115

116116
sub run {
117117
my ( $cmd, $name ) = @_;
118-
return if $b{$name};
118+
return if defined $b{$name};
119+
119120
my $module = "OpenBSD::Pkg\u$cmd";
121+
120122
## no critic
121123
eval "require $module";
122124
## use critic
125+
123126
if ($@) {
124127
die $@;
125128
}

0 commit comments

Comments
 (0)