summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2012-02-03 09:02:53 -0800
committerJohn Southworth <john.southworth@vyatta.com>2012-02-03 09:08:58 -0800
commit3e43decbe044838130d86dda4dc654d065f456b9 (patch)
treeb349862477784b8e78dcce43b8ad29bd2aa0831e /etc
parente7b8873f980baf6d00d38b4b666082c9b6cc2309 (diff)
downloadvyatta-cfg-3e43decbe044838130d86dda4dc654d065f456b9.tar.gz
vyatta-cfg-3e43decbe044838130d86dda4dc654d065f456b9.zip
Fix an inconsistency with single non-completion cases
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/vyatta-cfg8
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+=" > " ;;