summaryrefslogtreecommitdiffhomepage
path: root/tools/completion
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-03-22 15:19:10 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-03-22 15:19:10 +0900
commitbefaf99a43e81c2082e2f16356ddd7a0820fa5ce (patch)
tree034cd9222c45ac22c029e45927b7b47e0ee0ca9c /tools/completion
parent34e29a1102d06769987682be5be5d2bd6f1a53bf (diff)
tools: fix bash completion script
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'tools/completion')
-rw-r--r--tools/completion/gobgpcli-completion.bash10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/completion/gobgpcli-completion.bash b/tools/completion/gobgpcli-completion.bash
index 4b92292e..7b9139d9 100644
--- a/tools/completion/gobgpcli-completion.bash
+++ b/tools/completion/gobgpcli-completion.bash
@@ -44,16 +44,16 @@ __gobgpcli_neighbr_list() {
;;
esac
__ltrim_colon_completions "$cur"
- return
+ return 0
fi
+ return 1
}
_gobgpcli_show_neighbor() {
__gobgpcli_neighbr_list
- if [ -z ${COMPREPLY} ]; then
- __gobgpcli_table_list
- return
- fi
+ if [ $? -ne 0 ] ; then
+ __gobgpcli_table_list
+ fi
}
_gobgpcli_show_neighbors() {