From: Jeff Janes Date: Wed, 21 May 2014 17:48:01 +0000 (-0700) Subject: Don't swallow space before the -c flag when reporting errors X-Git-Tag: 2.22.0~28^2 X-Git-Url: http://git.postgresql.org/gitweb/-?a=commitdiff_plain;h=13597d9ebcec190d9cc97be0dcfee8cfa904ecd8;p=check_postgres.git Don't swallow space before the -c flag when reporting errors --- diff --git a/check_postgres.pl b/check_postgres.pl index d3c55815e..3e3b52585 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -2483,7 +2483,7 @@ sub run_command { warn "Action: $action\n"; warn "Calling line: $cline\n"; warn "Output: $line\n"; - $args =~ s/ -c (.+)/-c "$1"/s; + $args =~ s/ -c (.+)/ -c "$1"/s; warn "Command: $PSQL $args\n"; ## Last thing is to see if we can grab the PG version if (! $opt{stop_looping}) {