mirror of
https://github.com/webmin/webmin.git
synced 2025-08-15 21:20:10 +00:00
Use ./ in require instead of BEGIN
This commit is contained in:
@ -1,11 +1,10 @@
|
|||||||
#!/usr/local/bin/perl
|
#!/usr/local/bin/perl
|
||||||
# Command-line script to enable status collection
|
# Command-line script to enable status collection
|
||||||
|
|
||||||
BEGIN { push(@INC, '.'); };
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
our (%config);
|
our (%config);
|
||||||
require 'system-status-lib.pl';
|
require './system-status-lib.pl';
|
||||||
my $zero = @ARGV ? $ARGV[0] : '';
|
my $zero = @ARGV ? $ARGV[0] : '';
|
||||||
$zero eq 'none' || $zero =~ /^[1-9][0-9]*$/ && $zero <= 60 ||
|
$zero eq 'none' || $zero =~ /^[1-9][0-9]*$/ && $zero <= 60 ||
|
||||||
die "usage: enable-collection.pl none|<mins>";
|
die "usage: enable-collection.pl none|<mins>";
|
||||||
|
Reference in New Issue
Block a user