projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8856809
)
Make a better (runable) output for the error report.
author
Greg Sabino Mullane
<
[email protected]
>
Tue, 21 Jun 2011 03:49:01 +0000
(23:49 -0400)
committer
Greg Sabino Mullane
<
[email protected]
>
Tue, 21 Jun 2011 03:49:01 +0000
(23:49 -0400)
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index 6fcc47993492fbecbe4511d52c353d075df9217f..b4f09ce7d30ee41bbe5128f1e277cd9aea1e61b7 100755
(executable)
--- 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}) {