summaryrefslogtreecommitdiffstats
path: root/check_load
diff options
context:
space:
mode:
Diffstat (limited to 'check_load')
-rwxr-xr-xcheck_load4
1 files changed, 1 insertions, 3 deletions
diff --git a/check_load b/check_load
index ac2db4d..ad08836 100755
--- a/check_load
+++ b/check_load
@@ -128,9 +128,7 @@ sub handle_vserver($$$;$$) {
# fix taint mode
$ENV{PATH} = undef;
-if ($0 =~ m/(\w[\w\/]*\w)/) {
- $ENV{'NAGIOS_PLUGIN'} = $1;
-}
+$ENV{'NAGIOS_PLUGIN'} = $1 if ($0 =~ m/(\w[\w\/]*\w)/);
my $n = init_nagios_plugin();
$n->getopts();