diff options
Diffstat (limited to 'perl-install')
-rwxr-xr-x | perl-install/standalone/drakbug | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/standalone/drakbug b/perl-install/standalone/drakbug index 3b9427618..94131c6b9 100755 --- a/perl-install/standalone/drakbug +++ b/perl-install/standalone/drakbug @@ -35,8 +35,9 @@ my $version = "0.9.0"; my $prog; my $incident = 0; -while (defined($_ = shift @ARGV)) { - /^--report$/ and do { $prog = shift @ARGV }; +foreach (@ARGV) { + next unless defined $_; + /^--report$/ and $prog = shift @ARGV; /^--incident$/ and do { $incident = 1; $prog = shift @ARGV }; } |