summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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() {