summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2009-02-09 11:47:12 -0800
committerMohit Mehta <mohit.mehta@vyatta.com>2009-02-09 11:47:12 -0800
commit0db7f5903f0596b51d2b96d9c73c0ffbd59b83f5 (patch)
tree6f58dd1b86f467435ffe52d1a3eacc6faceb1c72 /etc
parente4991240444ecd6a4aaf84204d6c68de240ed26e (diff)
downloadvyatta-cfg-0db7f5903f0596b51d2b96d9c73c0ffbd59b83f5.tar.gz
vyatta-cfg-0db7f5903f0596b51d2b96d9c73c0ffbd59b83f5.zip
Fix Bug 3385 in completion script, thus, also fixing Bug 4120
Diffstat (limited to 'etc')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg
index 369ef7a..5589d69 100755
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -333,6 +333,10 @@ exit ()
# run op mode commands
run ()
{
+ if [ $# == 0 ]; then
+ echo Incomplete command
+ return 1
+ fi
_vyatta_op_run $@
}