diff options
author | John Southworth <john.southworth@vyatta.com> | 2012-02-03 09:02:53 -0800 |
---|---|---|
committer | John Southworth <john.southworth@vyatta.com> | 2012-02-03 09:08:58 -0800 |
commit | 3e43decbe044838130d86dda4dc654d065f456b9 (patch) | |
tree | b349862477784b8e78dcce43b8ad29bd2aa0831e /etc | |
parent | e7b8873f980baf6d00d38b4b666082c9b6cc2309 (diff) | |
download | vyatta-cfg-3e43decbe044838130d86dda4dc654d065f456b9.tar.gz vyatta-cfg-3e43decbe044838130d86dda4dc654d065f456b9.zip |
Fix an inconsistency with single non-completion cases
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/bash_completion.d/vyatta-cfg | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/etc/bash_completion.d/vyatta-cfg b/etc/bash_completion.d/vyatta-cfg index 5e9592e..9539fe1 100755 --- a/etc/bash_completion.d/vyatta-cfg +++ b/etc/bash_completion.d/vyatta-cfg @@ -467,13 +467,7 @@ get_help_text () vyatta_help_text+="\\x20\\x20" else if [[ $print_node_type -ne 0 ]]; then - if [[ ${#_get_help_text_items[@]} == 1 ]]; then - local nodeType=$(cli-shell-api getNodeType ${editlvl} ${api_args[@]:1:${comp_cword}}) - #echo -e "\n $@ 1 $editlvl ${api_args[@]:1:$[${comp_cword}-1]} $nodeType\n" - else - local nodeType=$(cli-shell-api getNodeType ${editlvl} ${api_args[@]:1:$[${comp_cword}-1]} ${_get_help_text_items[idx]}) - #echo -e "\n $@ $editlvl ${api_args[@]:1:$[${comp_cword}-1]} ${_get_help_text_items[idx]} $nodeType\n" - fi + local nodeType=$(cli-shell-api getNodeType ${editlvl} ${api_args[@]:1:$[${comp_cword}-1]} ${_get_help_text_items[idx]}) case "$nodeType" in tag) vyatta_help_text+="+> " ;; non-leaf) vyatta_help_text+=" > " ;; |