From befaf99a43e81c2082e2f16356ddd7a0820fa5ce Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Sun, 22 Mar 2015 15:19:10 +0900 Subject: tools: fix bash completion script Signed-off-by: FUJITA Tomonori --- tools/completion/gobgpcli-completion.bash | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/completion') 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() { -- cgit v1.2.3