summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-10-06 01:01:36 -0500
committerJohn Southworth <john.southworth@vyatta.com>2011-10-06 01:01:36 -0500
commit3391b6ab1fc023f3c688e3279deda39b6484413f (patch)
treeda8d7be9ca27ac7cb9eed330b0f699ab9403101e /etc
parent5e62ec99d43c630a06594a8a19587f1b3e129840 (diff)
downloadvyatta-op-3391b6ab1fc023f3c688e3279deda39b6484413f.tar.gz
vyatta-op-3391b6ab1fc023f3c688e3279deda39b6484413f.zip
fix help text printing when the command is runnable
Diffstat (limited to 'etc')
-rw-r--r--etc/bash_completion.d/vyatta-op9
1 files changed, 4 insertions, 5 deletions
diff --git a/etc/bash_completion.d/vyatta-op b/etc/bash_completion.d/vyatta-op
index 16e25b0..19f2519 100644
--- a/etc/bash_completion.d/vyatta-op
+++ b/etc/bash_completion.d/vyatta-op
@@ -148,6 +148,9 @@ _vyatta_op_help ()
_vyatta_op_print_help '<Enter>' "Execute the current command"
fi
for comp ; do
+ if [[ "$comp" == "<Enter>" ]]; then
+ continue
+ fi
if [ -z "$comp" ] ; then
if [ "X$node_tag_help" == "X$last_help" ] ; then
help=""
@@ -168,11 +171,7 @@ _vyatta_op_help ()
else
last_help=$help
fi
- if [[ "$comp" == "<Enter>" ]]; then
- continue
- else
- _vyatta_op_print_help "$comp" "$help"
- fi
+ _vyatta_op_print_help "$comp" "$help"
fi
done
}