summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2011-06-21 03:49:01 +0000
committerGreg Sabino Mullane2011-06-21 03:49:01 +0000
commit0475205a2e18d63f591e76447cc2009ed4b641d0 (patch)
treea5d1643e181501db87559903150ef5fc67f86f4f /check_postgres.pl
parent88568090e49e51683fc6ba86631be749677a3278 (diff)
Make a better (runable) output for the error report.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 6fcc47993..b4f09ce7d 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -2240,6 +2240,7 @@ sub run_command {
warn "Action: $action\n";
warn "Calling line: $cline\n";
warn "Output: $line\n";
+ $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}) {