diff options
author | Greg Sabino Mullane | 2011-06-24 17:50:55 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-06-24 17:50:55 +0000 |
commit | d4318aa11393f5a875881164249d64c54cde7731 (patch) | |
tree | 7b1f6c1e9e9779e970cfbcb076e73dbf6763a6c7 /check_postgres.pl | |
parent | ce3e0d13a293b9435ff01bde2b6c140c3129b8c7 (diff) |
Make sure --action overrides the naming trick.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index e9c499939..b432e16b9 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -901,7 +901,7 @@ our $SIMPLE = $OUTPUT eq 'simple' ? 1 : 0; ## See if we need to invoke something based on our name our $action = $opt{action} || ''; -if ($ME =~ /check_postgres_(\w+)/) { +if ($ME =~ /check_postgres_(\w+)/ and ! defined $opt{action}) { $action = $1; } |