summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorJeff Janes2014-05-21 17:48:01 +0000
committerJeff Janes2014-05-21 17:48:01 +0000
commit13597d9ebcec190d9cc97be0dcfee8cfa904ecd8 (patch)
treefe2fd2d24ac99d97deedc85f3dda9f80e642a076 /check_postgres.pl
parentff6e828dc4346194c007a79fbee98b6c0f9268d1 (diff)
Don't swallow space before the -c flag when reporting errors
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
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}) {