Skip to content

Commit

Permalink
correct bash completion
Browse files Browse the repository at this point in the history
Run `rpm-ostree -' with bash completion, an invalid `-q,' was found

[root@localhost ~]# rpm-ostree -
--help     --version  -q,

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
  • Loading branch information
hongxu-jia authored and cgwalters committed Nov 4, 2023
1 parent 3abb647 commit 4d47dcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completion/rpm-ostree
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ _rpmostree_get_completion()
then
if [ -z "${_rpmostree_command_completions:-}" ]
then
declare _rpmostree_command_completions="$(rpm-ostree --help | grep -e '^ ' | grep -v 'rpm-ostree' | sed 's/-h, //' | awk '{print $1}')"
declare _rpmostree_command_completions="$(rpm-ostree --help | grep -e '^ ' | grep -v 'rpm-ostree' | sed 's/-., //' | awk '{print $1}')"
fi
COMPREPLY=( $(compgen -W "${_rpmostree_command_completions}" -- "${cur}") )
fi
Expand Down

0 comments on commit 4d47dcf

Please sign in to comment.