From 6c62c842919d44efba63b9be88fc0503dec48220 Mon Sep 17 00:00:00 2001 From: Sivakumar.K Date: Tue, 20 Jul 2010 11:03:35 -0400 Subject: Fix the regex that matches psql/edb-psql --- check_postgres.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'check_postgres.pl') diff --git a/check_postgres.pl b/check_postgres.pl index 3c8e19754..30c3cc46a 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -1015,7 +1015,7 @@ if (! defined $PSQL or ! length $PSQL) { } -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}; -- cgit v1.2.3