[Bash-completion-commits] [bash-completion] 03/04: chronyc: Update help text parsing
Ville Skyttä
scop-guest at moszumanska.debian.org
Tue Oct 6 21:29:22 UTC 2015
This is an automated email from the git hooks/post-receive script.
scop-guest pushed a commit to branch master
in repository bash-completion.
commit bc03de502c3d8391ee220a3a28ed964db8c5e73a
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date: Tue Oct 6 17:45:00 2015 +0200
chronyc: Update help text parsing
In chrony-2.2 the chronyc help text formating was changed, the command
descriptions now may be on muliple lines and the commands are divided in
sections.
---
completions/chronyc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/completions/chronyc b/completions/chronyc
index b95308f..7a5f5f6 100644
--- a/completions/chronyc
+++ b/completions/chronyc
@@ -28,7 +28,7 @@ _chronyc()
case $args in
0)
COMPREPLY=( $( compgen -W "$( $1 help 2>/dev/null | \
- awk 'NR > 1 { sub("\\|", " ", $1); print $1 }' )" -- "$cur" ) )
+ awk '!/(^ |: *$)/ { sub("\\|", " ", $1); print $1 }' )" -- "$cur" ) )
;;
1)
case $prev in
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
More information about the Bash-completion-commits
mailing list