summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTon Voon <ton.voon@opsera.com>2013-08-23 16:13:09 (GMT)
committerTon Voon <ton.voon@opsera.com>2013-08-23 16:13:09 (GMT)
commitaf85216c79e267b2f586064a1f7e3e01a4277d75 (patch)
treef849016de3de86dc796a9c9293a78794d5b23585
parented9a0f3a7b944f7f72d27b6a3999db39eee5b0d5 (diff)
downloadmonitoring-plugins-af85216c79e267b2f586064a1f7e3e01a4277d75.tar.gz
Use own variable instead of ENV
-rwxr-xr-xtools/build_perl_modules2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build_perl_modules b/tools/build_perl_modules
index 57d6e61..9b0c3c2 100755
--- a/tools/build_perl_modules
+++ b/tools/build_perl_modules
@@ -256,7 +256,7 @@ foreach my $tarball (@tarballs) {
256 # Need to set this so that XML::SAX will install ParserDetails.ini by finding the right XML::SAX copy 256 # Need to set this so that XML::SAX will install ParserDetails.ini by finding the right XML::SAX copy
257 # Also makes sense to do this anyway, as I guess CPAN must be doing this for it to usually work 257 # Also makes sense to do this anyway, as I guess CPAN must be doing this for it to usually work
258 my $saved_PERL5LIB = $ENV{PERL5LIB}; 258 my $saved_PERL5LIB = $ENV{PERL5LIB};
259 $ENV{PERL5LIB} = "$ENV{DESTDIR}/$prefix/lib:$saved_PERL5LIB"; 259 $ENV{PERL5LIB} = "$destdir/$prefix/lib:$saved_PERL5LIB";
260 if ( -f "Build" ) { 260 if ( -f "Build" ) {
261 system("./Build install") == 0 261 system("./Build install") == 0
262 or die "Can't run make install: $!\n"; 262 or die "Can't run make install: $!\n";