From: Greg Sabino Mullane Date: Fri, 24 Jun 2011 17:50:55 +0000 (-0400) Subject: Make sure --action overrides the naming trick. X-Git-Tag: 2.18.0~47 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=d4318aa11393f5a875881164249d64c54cde7731;p=check_postgres.git Make sure --action overrides the naming trick. --- 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; }