From ae24aaeefba290d910a8d8f945716ecc84ca02ca Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Wed, 18 Jun 2014 18:45:10 +0200 Subject: Use FindBin consistently across Perl plugins Use Perl's FindBin module to locate the path to utils.pm in check_file_age.pl and check_mssql.pl, just as we do in other Perl plugins. --- plugins-scripts/check_mssql.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins-scripts/check_mssql.pl') diff --git a/plugins-scripts/check_mssql.pl b/plugins-scripts/check_mssql.pl index a3f497cd..a436a8ff 100755 --- a/plugins-scripts/check_mssql.pl +++ b/plugins-scripts/check_mssql.pl @@ -29,7 +29,8 @@ use DBI; use DBD::Sybase; use Getopt::Long; -use lib "."; +use FindBin; +use lib "$FindBin::Bin"; use utils qw($TIMEOUT %ERRORS &print_revision &support); use strict; -- cgit v1.2.3