summaryrefslogtreecommitdiffstats
path: root/check_mem
diff options
context:
space:
mode:
Diffstat (limited to 'check_mem')
-rwxr-xr-xcheck_mem4
1 files changed, 1 insertions, 3 deletions
diff --git a/check_mem b/check_mem
index 9909134..22dbca1 100755
--- a/check_mem
+++ b/check_mem
@@ -140,9 +140,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();