Skip to content

Commit

Permalink
chronyc: Update help text parsing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mlichvar authored and scop committed Oct 6, 2015
1 parent ef26136 commit bc03de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/chronyc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc03de5

Please sign in to comment.