diff --git a/check_postgres.pl b/check_postgres.pl index 3c8e1975..a6bab49a 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -1015,7 +1015,7 @@ sub msg_en { } -x $PSQL or ndie msg('opt-psql-noexec', $PSQL); $res = qx{$PSQL --version}; -$res =~ /^psql.+(\d+\.\d+)/ or ndie msg('opt-psql-nover'); +$res =~ /psql.+(\d+\.\d+)/ or ndie msg('opt-psql-nover'); our $psql_version = $1; $VERBOSE >= 2 and warn qq{psql=$PSQL version=$psql_version\n}; @@ -1935,7 +1935,7 @@ sub run_command { if ($db->{slurp} !~ /(\d+\.\d+)/) { ndie msg('die-badversion', $db->{slurp}); } - $db->{version} = $1; + $db->{version} = $2; $db->{ok} = 0; delete $arg->{versiononly}; ## Remove this from the returned hash pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy