Sfoglia il codice sorgente

check_ntp.pl: Using FindBin

Jan Wagner 10 anni fa
parent
commit
5c355a5cfa
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      plugins-scripts/check_ntp.pl

+ 2 - 1
plugins-scripts/check_ntp.pl

@@ -61,7 +61,8 @@ use POSIX;
 use strict;
 use Getopt::Long;
 use vars qw($opt_V $opt_h $opt_H $opt_t $opt_w $opt_c $opt_O $opt_j $opt_k $verbose $PROGNAME $def_jitter $ipv4 $ipv6);
-use lib utils.pm;
+use FindBin;
+use lib "$FindBin::Bin";
 use utils qw($TIMEOUT %ERRORS &print_revision &support);
 
 $PROGNAME="check_ntp";