mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Fix grep to find conninfo
it used to use \t* but [[:space:]] should be better as it does match more kind of spaces (the current one being broken in my case on RH7)
This commit is contained in:
committed by
Ian Barwick
parent
33525491ae
commit
00ae42eb07
@@ -5857,7 +5857,7 @@ get_barman_property(char *dst, char *name, char *local_repmgr_directory)
|
|||||||
initPQExpBuffer(&command_output);
|
initPQExpBuffer(&command_output);
|
||||||
|
|
||||||
maxlen_snprintf(command,
|
maxlen_snprintf(command,
|
||||||
"grep \"^\t%s:\" %s/show-server.txt",
|
"grep \"^[[:space:]]%s:\" %s/show-server.txt",
|
||||||
name, local_repmgr_tmp_directory);
|
name, local_repmgr_tmp_directory);
|
||||||
(void) local_command(command, &command_output);
|
(void) local_command(command, &command_output);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user