Skip to content

Commit

Permalink
Fix perl errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Mar 3, 2017
1 parent acae9a2 commit 6d8ce15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion awstats.pl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
require './virtualmin-awstats-lib.pl';

my $debug;
my $output;
if ($ARGV[0] eq "--debug") {
# Enable debug mode, which shows the output from the report command
shift(@ARGV);
Expand All @@ -20,7 +21,7 @@
-d $output || die "Missing directory $output";
}
@ARGV == 1 || die "usage: awstats.pl [--debug] [--output dir] <domainname>";
$dname = shift(@ARGV);
my $dname = shift(@ARGV);

if ($debug) {
&generate_report($ARGV[0], *STDERR, 0);
Expand Down

0 comments on commit 6d8ce15

Please sign in to comment.