summaryrefslogtreecommitdiffstats
path: root/sentry.pl
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2016-09-12 22:22:17 +0200
committerDylan William Hardison <dylan@hardison.net>2016-09-12 22:22:17 +0200
commit14bcdce1dc6029c3676c3640d8148c83c14692e5 (patch)
tree99d760e13b687f8111635916d9ed3937bc084c64 /sentry.pl
parente6bf4cacb10f86077fe898349485f5c7ab9fb4b6 (diff)
downloadbugzilla-14bcdce1dc6029c3676c3640d8148c83c14692e5.tar.gz
bugzilla-14bcdce1dc6029c3676c3640d8148c83c14692e5.tar.xz
Revert "Bug 1283930 - Add Makefile.PL & local/lib/perl5 support to bmo/master + local symlink to data/ directory"
Diffstat (limited to 'sentry.pl')
-rwxr-xr-xsentry.pl10
1 files changed, 4 insertions, 6 deletions
diff --git a/sentry.pl b/sentry.pl
index 8d8b878e9..95cd1846f 100755
--- a/sentry.pl
+++ b/sentry.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/perl -w
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -13,17 +13,15 @@
# called by Bugzilla::Sentry
#
-use 5.10.1;
use strict;
use warnings;
-# exit early if there's nothing to send
-use FindBin qw($RealBin);
-use lib ("$RealBin/.", "$RealBin/lib", "$RealBin/local/lib/perl5");
-
BEGIN {
delete $ENV{SERVER_SOFTWARE};
+ # exit early if there's nothing to send
+ use FindBin qw($Bin);
+ use lib $Bin, "$Bin/lib";
use Bugzilla::Constants;
exit(0) unless glob(bz_locations()->{error_reports} . '/*.dump');
}