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:
Cédric Villemain
2018-08-23 18:33:55 +02:00
committed by Ian Barwick
parent 33525491ae
commit 00ae42eb07

View File

@@ -5857,7 +5857,7 @@ get_barman_property(char *dst, char *name, char *local_repmgr_directory)
initPQExpBuffer(&command_output);
maxlen_snprintf(command,
"grep \"^\t%s:\" %s/show-server.txt",
"grep \"^[[:space:]]%s:\" %s/show-server.txt",
name, local_repmgr_tmp_directory);
(void) local_command(command, &command_output);