Make a better (runable) output for the error report.
authorGreg Sabino Mullane <[email protected]>
Tue, 21 Jun 2011 03:49:01 +0000 (23:49 -0400)
committerGreg Sabino Mullane <[email protected]>
Tue, 21 Jun 2011 03:49:01 +0000 (23:49 -0400)
check_postgres.pl

index 6fcc47993492fbecbe4511d52c353d075df9217f..b4f09ce7d30ee41bbe5128f1e277cd9aea1e61b7 100755 (executable)
@@ -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}) {