projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce3e0d1
)
Make sure --action overrides the naming trick.
author
Greg Sabino Mullane
<
[email protected]
>
Fri, 24 Jun 2011 17:50:55 +0000
(13:50 -0400)
committer
Greg Sabino Mullane
<
[email protected]
>
Fri, 24 Jun 2011 17:50:55 +0000
(13:50 -0400)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index e9c499939c186c143c86cf9540f10421d10cc38d..b432e16b9d6cd7d6716c6a029d8abd9dc31b2d31 100755
(executable)
--- 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;
}