From 20d223119eb40bd1ecdd637eb845f5e16c87bd36 Mon Sep 17 00:00:00 2001 From: Jan Wagner Date: Sun, 4 Oct 2015 18:38:25 +0200 Subject: check_ntp.pl: Using FindBin --- plugins-scripts/check_ntp.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins-scripts') diff --git a/plugins-scripts/check_ntp.pl b/plugins-scripts/check_ntp.pl index 13da939c..dd2cd6dc 100755 --- a/plugins-scripts/check_ntp.pl +++ b/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"; -- cgit v1.2.3