Skip to content

Commit 55e7f64

Browse files
authored
Merge pull request #6 from woblerr/fix_info_type_function_name
Fix function name for --type option for info command.
2 parents 8aaaf84 + 929d830 commit 55e7f64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pgbackrest-completion.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ _pgbackrest() {
178178
# Different values for the '--type' option depending on the command.
179179
case ${COMP_WORDS[1]} in
180180
info)
181-
COMPREPLY=($(compgen -W "$(__pgbackrest_command_options_values_backup_types)" -- ${cur}))
181+
COMPREPLY=($(compgen -W "$(__pgbackrest_command_options_values_type_info)" -- ${cur}))
182182
return 0;;
183183
*)
184184
# The usual completion for all other commands.
@@ -230,7 +230,7 @@ _pgbackrest() {
230230
--type)
231231
case ${COMP_WORDS[1]} in
232232
info)
233-
COMPREPLY=($(compgen -W "$(__pgbackrest_command_options_values_backup_types)" -- ${cur}))
233+
COMPREPLY=($(compgen -W "$(__pgbackrest_command_options_values_type_info)" -- ${cur}))
234234
return 0;;
235235
*)
236236
COMPREPLY=($(compgen -W "$(__pgbackrest_command_options_values)" -- ${cur}))

0 commit comments

Comments
 (0)