diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-03-22 15:19:10 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-03-22 15:19:10 +0900 |
commit | befaf99a43e81c2082e2f16356ddd7a0820fa5ce (patch) | |
tree | 034cd9222c45ac22c029e45927b7b47e0ee0ca9c | |
parent | 34e29a1102d06769987682be5be5d2bd6f1a53bf (diff) |
tools: fix bash completion script
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | tools/completion/gobgpcli-completion.bash | 10 |
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() { |